#!@RCD_SCRIPTS_SHELL@ # # $NetBSD: mediatomb.sh,v 1.2 2009/01/05 12:28:32 jmcneill Exp $ # # PROVIDE: mediatomb # REQUIRE: DAEMON . /etc/rc.subr name="mediatomb" rcvar=$name load_rc_config_var mediatomb_username mediatomb_username load_rc_config_var mediatomb_groupname mediatomb_groupname command="@PREFIX@/bin/mediatomb" logfile="@VARBASE@/log/${name}.log" pidfile="@PKG_HOME@/${name}.pid" command_args="-d -u ${mediatomb_username:-@MEDIATOMB_USER@} -g ${mediatomb_groupname:-@MEDIATOMB_USER@} -m @PKG_HOME@ -P ${pidfile} -l ${logfile} -c @PKG_SYSCONFDIR@/config.xml" extra_commands="reload" if [ -f /etc/rc.subr ]; then load_rc_config $name run_rc_command "$1" else echo -n "${name}" ${command} ${mediatomb_flags} ${command_args} fi