mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
f14ca0920d
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
36 lines
579 B
Bash
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
|
|
|