summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2012-05-06 20:46:04 +0000
committerstas <stas@FreeBSD.org>2012-05-06 20:46:04 +0000
commitb7aef556c5b158aaba53dc7b13da73d6d812b962 (patch)
tree43c48d85bfc506634744e4cd9195511ab2f8ffce /etc
parent98c7a528a1d53dac9a5121b55ec9b43a4ff91d2a (diff)
downloadFreeBSD-src-b7aef556c5b158aaba53dc7b13da73d6d812b962.zip
FreeBSD-src-b7aef556c5b158aaba53dc7b13da73d6d812b962.tar.gz
- Change kfd rc script to be more conformant with rcNG conventions:
o change rcname to kfd; o move mandatory options to command_args; o add missing "shutdown" keyword; o fix require line. Kfd doesn't really need to be started before daemons. Suggested by: dougb
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf4
-rwxr-xr-xetc/rc.d/kfd12
2 files changed, 7 insertions, 9 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index edccc64..0d31d54 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -297,8 +297,8 @@ kadmind5_server_enable="NO" # Run kadmind (or NO)
kadmind5_server="/usr/libexec/kadmind" # path to kerberos 5 admin daemon
kpasswdd_server_enable="NO" # Run kpasswdd (or NO)
kpasswdd_server="/usr/libexec/kpasswdd" # path to kerberos 5 passwd daemon
-kfd_server_enable="NO" # Run kfd (or NO)
-kfd_server="/usr/libexec/kfd" # path to kerberos 5 kfd daemon
+kfd_enable="NO" # Run kfd (or NO)
+kfd_program="/usr/libexec/kfd" # path to kerberos 5 kfd daemon
gssd_enable="NO" # Run the gssd daemon (or NO).
gssd_flags="" # Flags for gssd.
diff --git a/etc/rc.d/kfd b/etc/rc.d/kfd
index 0eed51a..d393f95 100755
--- a/etc/rc.d/kfd
+++ b/etc/rc.d/kfd
@@ -4,16 +4,14 @@
#
# PROVIDE: kfd
-# BEFORE: DAEMON
+# REQUIRE: NETWORK
+# KEYWORD: shutdown
. /etc/rc.subr
-name="kfd"
+name=kfd
+rcvar=kfd_enable
load_rc_config $name
-rcvar="kfd_server_enable"
-unset start_cmd
-command="${kfd_server}"
-kfd_flags="-i"
-command_args="&"
+command_args="-i &"
run_rc_command "$1"
OpenPOWER on IntegriCloud