blob: 6b1a8c727477a710865a812a555fdc129cd61c07 (
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
35
36
37
|
#!/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
|