slackbuilds_ponce/network/heimdal/config/rc.ipropd-master
Thibaut Notteboom f14ca0920d network/heimdal: Updated for version 7.1.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-02-21 16:44:32 +07:00

36 lines
579 B
Bash

#!/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