7 # description: This is a daemon for collecting and maintaing information \
8 # about hardware from several sources. \
9 # See http://www.freedesktop.org/software/hal
13 # Source function library
14 . /etc/rc.d/init.d/functions
17 # First step: check for running messagebus service
18 if [ -f /var/lock/subsys/messagebus ]; then
19 # Check if the service is already running?
20 if [ ! -f /var/lock/subsys/PolicyKit ]; then
21 msg_starting PolicyKit
24 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/PolicyKit
26 msg_already_running PolicyKit
29 msg_not_running messagebus
34 if [ -f /var/lock/subsys/PolicyKit ]; then
36 msg_stopping PolicyKit
38 rm -f /var/lock/subsys/PolicyKit
40 msg_not_running PolicyKit
44 # See how we were called.
57 if [ -f /var/lock/subsys/PolicyKit ]; then
58 msg_reloading PolicyKit
62 msg_not_running PolicyKit
71 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
77 # This must be last line !