Startup NetBSD

From MtdWiki

An automated startup script for use with NetBSD; to be placed in /etc/rc.d. It has to be called mtdaapd without the -.

#!/bin/sh
#
# PROVIDE: mtdaapd mt-daapd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# mt-daapd daemon.
#

. /etc/rc.subr

name="mtdaapd"
realname="mt-daapd"
rcvar=$name
command="/path/to/${realname}"
pidfile="/var/run/${realname}.pid"
sig_stop="SIGINT"

load_rc_config $name
run_rc_command "$1"

contributed by Patrekur through the NetBSD QuickStart guide.