27 lines
496 B
Bash
Executable File
27 lines
496 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: mdnsd,v 1.1 2009/09/29 23:56:27 tsarna Exp $
|
|
#
|
|
|
|
# PROVIDE: mdnsd
|
|
# REQUIRE: SERVERS
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="mdnsd"
|
|
rcvar=$name
|
|
command="/usr/sbin/$name"
|
|
pidfile="/var/run/mdnsd/${name}.pid"
|
|
start_precmd="mdnsd_precmd"
|
|
|
|
mdnsd_precmd()
|
|
{
|
|
if [ ! -d /var/run/mdns ]; then
|
|
mkdir -p -m 755 /var/run/mdnsd
|
|
fi
|
|
chown _mdnsd:_mdnsd /var/run/mdnsd
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|