summaryrefslogtreecommitdiff
path: root/security/scanlogd/files/scanlogd.sh
blob: 532249fcfcb384bf5ef313d8e821fba74a1433be (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
#!/bin/sh

# Start or stop scanlogd
# $FreeBSD$

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

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

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

. %%RC_SUBR%%

name="scanlogd"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/${name}"
required_files=""

load_rc_config $name
run_rc_command "$1"