blob: a1937569cc98c06488bb1cc4506eeafb63842841 (
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
#
# /etc/rc.d/rc.consolekit
#
# Start/stop consolekit-kit daemon.
#
# This daemon is used by polkit's console auth agent.
# Start consolekit:
ck_start() {
echo "Starting ConsoleKit daemon: /usr/sbin/console-kit-daemon"
/usr/sbin/console-kit-daemon
}
# Stop consolekit:
ck_stop() {
if [ -r /var/run/ConsoleKit/pid ]; then
kill -HUP $(cat /var/run/ConsoleKit/pid)
rm -f /var/run/ConsoleKit/pid
else
killall -HUP -q console-kit-daemon
fi
}
case "$1" in
'start')
ck_start
;;
'stop')
ck_stop
;;
*)
echo "Usage: $0 start|stop"
esac
|