summaryrefslogtreecommitdiff
path: root/security/scanlogd/files/scanlogd.in
blob: ff7a54fae1288435963e515d0ac31a059e06556c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# Start or stop scanlogd
# $FreeBSD$

# PROVIDE: scanlogd
# REQUIRE: LOGIN
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable scanlogd:
# scanlogd_enable="YES"
# scanlogd_flags="<set as needed>"

. /etc/rc.subr

name="scanlogd"
rcvar=scanlogd_enable
command="%%PREFIX%%/bin/${name}"

load_rc_config $name

: ${scanlogd_enable-"NO"}	# Enable scanlogd

run_rc_command "$1"