summaryrefslogtreecommitdiff
path: root/network/heimdal/config/rc.ipropd-slave
diff options
context:
space:
mode:
Diffstat (limited to 'network/heimdal/config/rc.ipropd-slave')
-rw-r--r--network/heimdal/config/rc.ipropd-slave37
1 files changed, 37 insertions, 0 deletions
diff --git a/network/heimdal/config/rc.ipropd-slave b/network/heimdal/config/rc.ipropd-slave
new file mode 100644
index 0000000000..6b1a8c7274
--- /dev/null
+++ b/network/heimdal/config/rc.ipropd-slave
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+KEYTAB=/etc/iprop.keytab
+HOSTNAME=`hostname -f`
+
+ipropd_slave_start() {
+ if [ -x /usr/libexec/ipropd-slave ]; then
+ echo "Starting the ipropd-slave service: /usr/libexec/ipropd-slave --detach"
+ /usr/libexec/ipropd-slave --detach --keytab=$KEYTAB --hostname=$HOSTNAME
+ fi
+}
+
+ipropd_slave_stop() {
+ killall ipropd-slave
+}
+
+ipropd_slave_restart() {
+ ipropd-slave_stop
+ sleep 1
+ ipropd-slave_start
+}
+
+case "$1" in
+ 'start')
+ ipropd_slave_start
+ ;;
+ 'stop')
+ ipropd_slave_stop
+ ;;
+ 'restart')
+ ipropd_slave_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+