summaryrefslogtreecommitdiff
path: root/network/heimdal/config/rc.ipropd-master
diff options
context:
space:
mode:
Diffstat (limited to 'network/heimdal/config/rc.ipropd-master')
-rw-r--r--network/heimdal/config/rc.ipropd-master36
1 files changed, 36 insertions, 0 deletions
diff --git a/network/heimdal/config/rc.ipropd-master b/network/heimdal/config/rc.ipropd-master
new file mode 100644
index 0000000000..744943b4c5
--- /dev/null
+++ b/network/heimdal/config/rc.ipropd-master
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+HOSTNAME=`hostname -f`
+
+ipropd_master_start() {
+ if [ -x /usr/libexec/ipropd-master ]; then
+ echo "Starting the ipropd-master service: /usr/libexec/ipropd-master --detach"
+ /usr/libexec/ipropd-master --detach --hostname=$HOSTNAME
+ fi
+}
+
+ipropd_master_stop() {
+ killall ipropd-master
+}
+
+ipropd_master_restart() {
+ ipropd-master_stop
+ sleep 1
+ ipropd-master_start
+}
+
+case "$1" in
+ 'start')
+ ipropd_master_start
+ ;;
+ 'stop')
+ ipropd_master_stop
+ ;;
+ 'restart')
+ ipropd_master_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+