mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-30 18:44:18 +01:00
37 lines
476 B
Text
37 lines
476 B
Text
|
#!/bin/sh
|
||
|
|
||
|
heimdal_start() {
|
||
|
if [ -r /var/heimdal/kdc.conf -a -x /usr/heimdal/libexec/kdc ]; then
|
||
|
echo "Starting the Kerberos service: /usr/heimdal/libexec/kdc --detach"
|
||
|
/usr/heimdal/libexec/kdc --detach
|
||
|
fi
|
||
|
|
||
|
}
|
||
|
|
||
|
heimdal_stop() {
|
||
|
killall kdc
|
||
|
|
||
|
}
|
||
|
|
||
|
heimdal_restart() {
|
||
|
heimdal_stop
|
||
|
sleep 1
|
||
|
heimdal_start
|
||
|
|
||
|
}
|
||
|
|
||
|
case "$1" in
|
||
|
'start')
|
||
|
heimdal_start
|
||
|
;;
|
||
|
'stop')
|
||
|
heimdal_stop
|
||
|
;;
|
||
|
'restart')
|
||
|
heimdal_restart
|
||
|
;;
|
||
|
*)
|
||
|
echo "Usage: $0 start|stop|restart"
|
||
|
esac
|
||
|
|