diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-11 15:01:28 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackbuilds.org> | 2010-05-11 15:01:28 +0200 |
commit | e7a9c4461b80c1b9337f2d97c965ad181e0ba6a5 (patch) | |
tree | f776d67f412a5ad020e2ce8ba1209838b2f0bebd /network/heimdal/rc.heimdal | |
parent | 557baff128bdce0fdc485c15f1be1f99e60004c9 (diff) | |
download | slackbuilds-e7a9c4461b80c1b9337f2d97c965ad181e0ba6a5.tar.gz |
network/heimdal: Initial import
Diffstat (limited to 'network/heimdal/rc.heimdal')
-rw-r--r-- | network/heimdal/rc.heimdal | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/network/heimdal/rc.heimdal b/network/heimdal/rc.heimdal new file mode 100644 index 0000000000..7c0b93fe72 --- /dev/null +++ b/network/heimdal/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 + |