mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Even more rc script improvements.
Suggested by: dougb
This commit is contained in:
parent
22301889fa
commit
3ab7960b0b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=240621
@ -4,22 +4,21 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# PROVIDE: scanlogd
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
# REQUIRE: 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
|
||||
|
||||
: ${scanlogd_enable-"NO"} # Enable scanlogd
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user