6a8eb1ea55
* Support for SLP queries on multiple network interfaces * Support for SLP query through a unicast * DHCP code * Added support for the net.slp.DAHeartBeat setting * Make attribute compares case insensitive as per RFC 2608 * Added PID monitoring. Now when the process that called SLPReg() (with SLP_REG_FLAG_WATCH_PID) dies the registration will automatically be deregistered. patch-a[cdefg] fix compilation warnings and errors (all the world is not Linux/i386).
28 lines
484 B
Bash
28 lines
484 B
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: slpd.sh,v 1.10 2004/11/27 04:41:12 jlam 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="@VARBASE@/run/${name}.pid"
|
|
required_files="@PKG_SYSCONFDIR@/slp.conf"
|
|
|
|
if [ -f /etc/rc.subr ]
|
|
then
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|
|
else
|
|
@ECHO@ -n " ${name}"
|
|
${command} ${slpd_flags} ${command_args}
|
|
fi
|