summaryrefslogtreecommitdiff
path: root/net/minissdpd/files/minissdpd.in
blob: 40703bbd49bb3ed0b6b7fcdc9f1d795b5f7b88f1 (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
#!/bin/sh

# 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"