24 lines
399 B
Bash
24 lines
399 B
Bash
#!/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>"
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="scanlogd"
|
|
rcvar=`set_rcvar`
|
|
command="%%PREFIX%%/bin/${name}"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${scanlogd_enable-"NO"} # Enable scanlogd
|
|
|
|
run_rc_command "$1"
|