Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / comms / conserver / files / conserver.sh
blobf6aa160e077c34b5c8934678c008c4d265b478bf
1 #!@RCD_SCRIPTS_SHELL@
3 # $NetBSD: conserver.sh,v 1.4 2004/07/10 22:35:32 salo Exp $
5 # PROVIDE: conserver
6 # REQUIRE: DAEMON
8 if [ -f /etc/rc.subr ]
9 then
10 . /etc/rc.subr
13 name="conserver"
14 rcvar=$name
15 command="@PREFIX@/sbin/${name}"
16 required_files="@PKG_SYSCONFDIR@/conserver.cf"
17 pidfile="/var/run/conserver.pid"
18 command_args="-d" # _must_ start as daemon from rc.d;
19 # add more flags through ${${name}_flags}
20 extra_commands="reload"
22 if [ -f /etc/rc.subr ]
23 then
24 load_rc_config $name
25 run_rc_command "$1"
26 else
27 @ECHO@ -n ' ${name}'
28 ${command} ${conserver_flags} ${command_args}