new daemon - start and stop questions
Hi, I have installed mpd (music player daemon) and wanted to check if what I'm planning to do is ok.
Now, the mpd package has put /etc/rc.d/rc.mpd in for me, but just making it executable was not enough to make it start. Having a look through the scripts, this is my solution: Add this to rc.M Code:
if [ -x /etc/rc.d/rc.mpd ]; then Code:
if [ -x /etc/rc.d/rc.mpd ]; then |
This depends on the distrubution. On Fedora you can use "chkconfig". On Gentoo you can use "rc-update". Please specify distribution if you want more info...
|
I'd put the starting block inside rc.local, and either ommit the stop block if it's fine, or put it inside rc.local_shutdown.
|
Quote:
Thank you! |
All times are GMT -5. The time now is 01:37 AM. |