How to run MOC as an always-running daemon under NetBSD/DragonFly?

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.

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

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