blob: 13a209c94599d8f443686a34e4f3a23c5853d45a (
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: slpd.sh,v 1.7 2002/09/20 02:01:58 grant Exp $
#
# Service Location Protocol daemon
#
# PROVIDE: slpd
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="slpd"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/slp.conf"
if [ -f /etc/rc.subr ]
then
load_rc_config $name
eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${slpd_flags} ${command_args}
fi
|