blob: f712ee8e45346611f5c58a04130ab2630fd4ed2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
kpasswdd_start() {
if [ -x /usr/libexec/kpasswdd ]; then
echo "Starting the kpasswdd service: /usr/libexec/kpasswdd"
/usr/libexec/kpasswdd --detach
fi
}
kpasswdd_stop() {
killall kpasswdd
}
kpasswdd_restart() {
kpasswdd_stop
sleep 1
kpasswdd_start
}
case "$1" in
'start')
kpasswdd_start
;;
'stop')
kpasswdd_stop
;;
'restart')
kpasswdd_restart
;;
*)
echo "Usage: $0 start|stop|restart"
;;
esac
|