diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
commit | 9aac569eaa031e27191a3f4165b389a17f467ad2 (patch) | |
tree | 1ed78841e1757014ccc09581c61c3683992d3f77 /sysutils/radmind/files/radmind.in | |
parent | When installing in the base, USE_RCORDER does the right thing without (diff) |
Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file
No PORTREVISION bump necessary because this is a no-op
Diffstat (limited to 'sysutils/radmind/files/radmind.in')
-rw-r--r-- | sysutils/radmind/files/radmind.in | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sysutils/radmind/files/radmind.in b/sysutils/radmind/files/radmind.in new file mode 100644 index 000000000000..d64beb14c971 --- /dev/null +++ b/sysutils/radmind/files/radmind.in @@ -0,0 +1,38 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: radmind +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable radmind: +# +#radmind_enable="YES" +# +# You may also override the default daemon user & flags: +# +#radmind_user="radmind" +#radmind_flags="-D /var/radmind -u 077 -w 0" +# +# See radmind(8) for flags +# + +. /etc/rc.subr + +name=radmind +rcvar=radmind_enable + +command=%%PREFIX%%/sbin/radmind +required_files=%%RADMIND_BASE_DIR%%/config + +# set defaults + +radmind_enable=${radmind_enable:-"NO"} +radmind_user=${radmind_user:-"radmind"} +radmind_flags=${radmind_flags:-"-D %%RADMIND_BASE_DIR%% -m 5 -u 077 -w 0"} + +load_rc_config ${name} +run_rc_command "$1" |