summaryrefslogtreecommitdiff
path: root/network/heimdal/config/rc.kpasswdd
diff options
context:
space:
mode:
Diffstat (limited to 'network/heimdal/config/rc.kpasswdd')
-rw-r--r--network/heimdal/config/rc.kpasswdd34
1 files changed, 34 insertions, 0 deletions
diff --git a/network/heimdal/config/rc.kpasswdd b/network/heimdal/config/rc.kpasswdd
new file mode 100644
index 0000000000..f712ee8e45
--- /dev/null
+++ b/network/heimdal/config/rc.kpasswdd
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+kpasswdd_start() {
+ if [ -x /usr/libexec/kpasswdd ]; then
+ echo "Starting the kpasswdd service: /usr/libexec/kpasswdd"
+ /usr/libexec/kpasswdd --detach
+ fi
+}
+
+kpasswdd_stop() {
+ killall kpasswdd
+}
+
+kpasswdd_restart() {
+ kpasswdd_stop
+ sleep 1
+ kpasswdd_start
+}
+
+case "$1" in
+ 'start')
+ kpasswdd_start
+ ;;
+ 'stop')
+ kpasswdd_stop
+ ;;
+ 'restart')
+ kpasswdd_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+