blob: 959f226b18ef13daec0aa7779093f06983206984 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cvsd.sh,v 1.1.1.1 2006/05/20 23:38:16 wiz 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
|