diff options
author | hrs <hrs@FreeBSD.org> | 2014-08-29 07:51:47 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-08-29 07:51:47 +0000 |
commit | 1937276d51048d9c8860de1841030471d0abce1b (patch) | |
tree | d3340f7bff2880666bf73685b51d33338b685009 /etc/rc.d/ipropd_slave | |
parent | 0a12d6abf032ff89f34c9d605c6d467eae2ed916 (diff) | |
download | FreeBSD-src-1937276d51048d9c8860de1841030471d0abce1b.zip FreeBSD-src-1937276d51048d9c8860de1841030471d0abce1b.tar.gz |
Restructure rc.d scripts for kerberos5 daemons:
- Rename $kerberos5_server_enable with $kdc_enable and rename
rc.d/kerberos with rc.d/kdc.
- Rename $kadmin5_server_enable with $kadmind_enable.
- Rename ${kerberos5,kpasswdd}_server with ${kdc,kpasswdd}_program.
- Fix rc.d/{kadmind,kerberos,kpasswdd,kfd} scripts not to change variables
after load_rc_config().
- Add rc.d/ipropd_master and rc.d/ipropd_slave scripts. These are
for iprop-master(8) and iprop-slave(8). Keytab used for iprop service is
defined in ipropd_{master,slave}_keytab (/etc/krb5.keytab by default).
- Add dependency on rc.d/kdc to SERVERS. rc.d/kdc must be invoked as early
as possible before scripts divided by rc.d/SERVERS.
Note that changes to rc.d/{kdc,kpasswdd,kadmind} are backward-compatible
with the old configuration variables:
${kerberos5,kpasswdd,kadmin5}_server{,_enable,_flags}.
Diffstat (limited to 'etc/rc.d/ipropd_slave')
-rwxr-xr-x | etc/rc.d/ipropd_slave | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/etc/rc.d/ipropd_slave b/etc/rc.d/ipropd_slave new file mode 100755 index 0000000..803281e --- /dev/null +++ b/etc/rc.d/ipropd_slave @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ipropd_slave +# REQUIRE: kdc +# KEYWORD: shutdown + +. /etc/rc.subr + +name=ipropd_slave +rcvar=${name}_enable +required_files="$ipropd_slave_keytab" +start_precmd=${name}_start_precmd + +ipropd_slave_start_precmd() +{ + + if [ -z "$ipropd_slave_masters" ]; then + warn "\$ipropd_slave_masters is empty." + return 1 + fi + command_args=" \ + $command_args \ + --keytab=\"$ipropd_slave_keytab\" \ + --detach \ + $ipropd_slave_masters" +} + +load_rc_config $name +run_rc_command "$1" |