summaryrefslogtreecommitdiff
path: root/network/heimdal/config/rc.heimdal
diff options
context:
space:
mode:
authorThibaut Notteboom <tib@tibux.org>2011-12-11 22:11:27 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2011-12-18 00:07:45 -0200
commitadfa160a33338632c054bfe7f2ea8c98d2943a5f (patch)
treebdc14f50fe1207756481ee5b751a1e3b2684e44e /network/heimdal/config/rc.heimdal
parentb16dcfda15b2aa602e654ebf003a74d8bf5c8dc1 (diff)
downloadslackbuilds-adfa160a33338632c054bfe7f2ea8c98d2943a5f.tar.gz
network/heimdal: Added (KTH Heimdal Kerberos)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/heimdal/config/rc.heimdal')
-rw-r--r--network/heimdal/config/rc.heimdal36
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
+