freebsd-ports/net/cnupm/files/cnupm.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

37 lines
677 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
#
# Add the following lines to /etc/rc.conf to enable rsyncd:
#
# cnupm_enable="YES"
# cnupm_ifaces="rl0" # Change this with your interface!
# cnupm_flags="" # Set this one to override default flags
#
# See cnupm(8) for flags
#
. /etc/rc.subr
name=cnupm
rcvar=cnupm_enable
command=%%PREFIX%%/sbin/cnupm
cnupm_flags="-ep -f inet -u cnupm"
load_rc_config ${name}
cnupm_enable=${cnupm_enable:-"NO"}
case ${cnupm_enable} in
[Yy][Ee][Ss])
if [ -z ${cnupm_iface} ]; then
err 1 "cnupm_iface is not set - edit /etc/rc.conf"
fi
esac
cnupm_flags="-i ${cnupm_iface} ${cnupm_flags:-""}"
pidfile=~${name}/${name}-${cnupm_iface}.pid
run_rc_command "$1"