freebsd-ports/net/ptpd2/files/ptpd2.in
2013-02-15 16:59:52 +00:00

24 lines
394 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ptpd2
# REQUIRE: NETWORKING DAEMON
# KEYWORD: nojail
#
# Add the following lines to /etc/rc.conf to enable ptpd
#
# ptpd2_enable (bool): Set to "NO" by default
# Set it to "YES" to enable ptpd
. /etc/rc.subr
name="ptpd2"
rcvar=ptpd2_enable
command="%%PREFIX%%/sbin/${name}"
ptpd2_enable=${ptpd2_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"