diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-10-19 17:16:52 +0100 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-10-19 17:16:52 +0100 |
commit | 31444f01c3a08fe385d86afa5de85622d2089ac9 (patch) | |
tree | 30dbcfeee3979c9f2ccfa2e262b14ef757ceb7d8 /network/heimdal/config/rc.heimdal | |
parent | 1f03a0e8f069db34508633d2df61701eba96368e (diff) | |
download | slackbuilds-31444f01c3a08fe385d86afa5de85622d2089ac9.tar.gz |
network/heimdal: Fixed permissions issues.
Signed-off-by: Michiel van Wessem <michiel@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 + |