- 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
This commit is contained in:
Stanislav Sedov 2012-05-06 20:46:04 +00:00
parent 7c01b8a930
commit 51506f39f4
2 changed files with 7 additions and 9 deletions

View File

@ -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.

View File

@ -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"