mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
a0b18476a2
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
34 lines
428 B
Bash
34 lines
428 B
Bash
#!/bin/sh
|
|
|
|
kdc_start() {
|
|
if [ -x /usr/heimdal/libexec/kdc ]; then
|
|
echo "Starting the kdc service: /usr/heimdal/libexec/kdc --detach"
|
|
/usr/heimdal/libexec/kdc --detach
|
|
fi
|
|
}
|
|
|
|
kdc_stop() {
|
|
killall kdc
|
|
}
|
|
|
|
kdc_restart() {
|
|
kdc_stop
|
|
sleep 1
|
|
kdc_start
|
|
}
|
|
|
|
case "$1" in
|
|
'start')
|
|
kdc_start
|
|
;;
|
|
'stop')
|
|
kdc_stop
|
|
;;
|
|
'restart')
|
|
kdc_restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 start|stop|restart"
|
|
;;
|
|
esac
|
|
|