blob: 76e37732bb550d4e899b1ee35f0fea320d1c62ac (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: minissdpd
# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
# BEFORE: miniupnpd
. /etc/rc.subr
# Add the following line to /etc/rc.conf to enable minissdpd
# minissdpd_enable="YES"
# minissdpd_flags="-i listen_addr"
name=minissdpd
rcvar=minissdpd_enable
load_rc_config $name
minissdpd_enable=${minissdpd_enable:-"NO"}
command="%%PREFIX%%/sbin/minissdpd"
pidfile="/var/run/${name}.pid"
sockfile="/var/run/${name}.sock"
command_args="-s ${sockfile} -p ${pidfile}"
run_rc_command "$1"
|