Add patrekur's bsd init script, move all init scripts to contrib/init.d

This commit is contained in:
Ron Pedde
2006-04-17 05:04:21 +00:00
parent e3fc9fa94c
commit d6ac7d5744
7 changed files with 28 additions and 150 deletions

21
contrib/init.d/mtdaapd-bsd Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
#
# PROVIDE: mtdaapd mt-daapd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# mt-daapd daemon.
#
# Created by Patrick Lemmens for NetBSD and FreeBSD.
. /etc/rc.subr
name="mtdaapd"
realname="mt-daapd"
rcvar=$name
command="/usr/local/bin/${realname}"
pidfile="/var/run/${realname}.pid"
sig_stop="SIGINT"
load_rc_config $name
run_rc_command "$1"