freebsd-ports/net/iplog/files/iplog.in
Wen Heping 32d6be863c - Add a new rc script
PR:		ports/143108
Submitted by:	Sevan Janiyan <venture37@geeklan.co.uk>
Approved by:	maintainer
2010-03-13 12:54:15 +00:00

30 lines
479 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: iplog
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# iplog_enable (bool): Set to NO by default.
# Set it to YES to enable iplog.
#
. /etc/rc.subr
name="iplog"
rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}/${name}.pid
load_rc_config $name
: ${iplog_enable="NO"}
command_args="-d -z"
run_rc_command "$1"