Commit 8ac28d7c authored by David Zeuthen's avatar David Zeuthen

forgot two files

parent 96f6daa6
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only uid 0 or user @POLKIT_USER@ can own the org.freedesktop.PolicyKit service -->
<policy user="@POLKIT_USER@">
<allow own="org.freedesktop.PolicyKit"/>
</policy>
<policy user="0">
<allow own="org.freedesktop.PolicyKit"/>
</policy>
<!-- Allow anyone to invoke methods on the org.freedesktop.PolicyKit interfaces -->
<policy context="default">
<allow send_interface="org.freedesktop.PolicyKit"/>
<allow receive_interface="org.freedesktop.PolicyKit"
receive_sender="org.freedesktop.PolicyKit"/>
</policy>
</busconfig>
#!/bin/sh
#
# PolicyKit: PolicyKit daemon
#
# chkconfig: 345 90 10
# description: The PolicyKit maintains a list of privileges and \
# provides interfaces for changing it. \
# See http://www.freedesktop.org/Software/hal
#
# processname: polkitd
# pidfile: @POLKITD_PID_FILE@
#
# Sanity checks.
[ -x @SBINDIR@/polkitd ] || exit 0
# Source function library.
. @SYSCONFDIR@/rc.d/init.d/functions
# so we can rearrange this easily
processname=polkitd
servicename=PolicyKit
RETVAL=0
start() {
echo -n $"Starting PolicyKit daemon: "
daemon --check $servicename $processname
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch @LOCALSTATEDIR@/lock/subsys/$servicename
}
stop() {
echo -n $"Stopping PolicyKit daemon: "
killproc $processname -TERM
RETVAL=$?
echo
if [ $RETVAL -eq 0 ]; then
rm -f @LOCALSTATEDIR@/lock/subsys/$servicename
rm -f @POLKITD_PID_FILE@
fi
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $processname
RETVAL=$?
;;
restart)
stop
sleep 3
start
;;
condrestart)
if [ -f @LOCALSTATEDIR@/lock/subsys/$servicename ]; then
stop
sleep 3
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
esac
exit $RETVAL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment