mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
f14ca0920d
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
37 lines
608 B
Bash
37 lines
608 B
Bash
#!/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
|
|
|