diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-07-30 02:51:03 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-07-31 22:31:51 -0500 |
commit | 952a293306fb8ace94eda61b2ead9e16577482db (patch) | |
tree | c82a48f7f2b5023d933305126b9cb9f20fd76c4c /network/heimdal/config/rc.heimdal | |
parent | e502945912c3ccc6d55a6819bc921cf5f47cc4fd (diff) | |
download | slackbuilds-952a293306fb8ace94eda61b2ead9e16577482db.tar.gz |
network/heimdal: Updated for version 1.3.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/heimdal/config/rc.heimdal')
-rw-r--r-- | network/heimdal/config/rc.heimdal | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/network/heimdal/config/rc.heimdal b/network/heimdal/config/rc.heimdal new file mode 100644 index 0000000000..7c0b93fe72 --- /dev/null +++ b/network/heimdal/config/rc.heimdal @@ -0,0 +1,36 @@ +#!/bin/sh + +heimdal_start() { + if [ -r /var/heimdal/kdc.conf -a -x /usr/heimdal/libexec/kdc ]; then + echo "Starting the Kerberos service: /usr/heimdal/libexec/kdc --detach" + /usr/heimdal/libexec/kdc --detach + fi + +} + +heimdal_stop() { + killall kdc + +} + +heimdal_restart() { + heimdal_stop + sleep 1 + heimdal_start + +} + +case "$1" in +'start') + heimdal_start + ;; +'stop') + heimdal_stop + ;; +'restart') + heimdal_restart + ;; +*) + echo "Usage: $0 start|stop|restart" +esac + |