Stable: 2.5.2
Development: 2.6-alpha3
Hello,
I'm a happy DragonFly BSD and MOC user. I want to having MOC running as an always-running daemon on my machine (and soon on my server) and then using MOC in the future as a GOD-like playing daemon for stuff like hearing the music from all the home or other manners.
timofonic
Wed, 2006-06-07 05:02
Permalink
Sorry, I'm tired clicked the
Sorry, I'm tired clicked the button...
Anyone could provide me some nice script for /etc/rc.d ? Nothing more, and thanks *A LOT* to the one that provide me.
Best regards,
timofonic
daga
Thu, 2006-06-08 22:06
Permalink
moc as a server
I'm not sure what kind of scripts your distro uses in /etc/rc.d. For mine (Slackware), creating a script to start playing music at boot is as simple as this (as root):
echo -e '#!/bin/sh\n\n/usr/local/bin/mocp -S\n/usr/local/bin/mocp -p'>/etc/rc.d/rc.mocp
chmod +x /etc/rc.d/rc.mocp
echo -e 'if [ -x /etc/rc.d/rc.mocp ]; then\n . /etc/rc.d/rc.mocp\nfi'>>/etc/rc.d/rc.local
Hope this helps