mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 13:10:31 -04:00
31 lines
520 B
Bash
31 lines
520 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=iplog_enable
|
|
|
|
start_precmd="install -d /var/run/${name}"
|
|
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"
|