Provide the possibility to specify the listening address via rc.d script

This commit is contained in:
Emanuel Haupt 2009-12-21 09:57:08 +00:00
parent 011faf9169
commit fb97de2d66
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246343
2 changed files with 3 additions and 3 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= minissdpd
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://miniupnp.free.fr/files/ \
CRITICAL

View file

@ -10,7 +10,7 @@
# Add the following line to /etc/rc.conf to enable minissdpd
# minissdpd_enable="YES"
# minissdpd_flags="<set as needed>"
# minissdpd_flags="-i listen_addr"
name=minissdpd
rcvar=`set_rcvar`
@ -21,7 +21,6 @@ minissdpd_enable=${minissdpd_enable:-"NO"}
command="%%PREFIX%%/sbin/minissdpd"
pidfile="/var/run/${name}.pid"
sockfile="/var/run/${name}.sock"
address="0.0.0.0"
command_args="-s ${sockfile} -p ${pidfile} -i ${address}"
command_args="-s ${sockfile} -p ${pidfile}"
run_rc_command "$1"