blob: 0fa85f8ffc9d4241cb61f751d5403168e68d3d62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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
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"
|