pkgsrc-wip/cvsd/files/cvsd.sh
2003-09-27 02:35:15 +00:00

29 lines
639 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cvsd.sh,v 1.3 2003/09/27 02:35:15 xtraeme Exp $
#
# PROVIDE: cvsd
# REQUIRE: DAEMON
if [ -e /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="cvsd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@PREFIX@/etc/${name}.conf"
pidfile=$(awk '/^#/ {next}; /PidFile/ {print $2}' ${required_files})
# pidfile=/var/run/cvsd.pid
command_args=""
# add more flags through ${${name}_flags}
if [ -e /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
else
echo -n ' ${name}'
${command} ${cvsd_flags} ${command_args}
fi