From: David Zeuthen Date: Tue, 14 Mar 2006 06:20:47 +0000 (+0000) Subject: forgot two files X-Git-Tag: POLICY_KIT_0_3~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ac28d7c3aa706fe527a38bb8ed87e76e4dd1006;p=platform%2Fupstream%2Fpolkit.git forgot two files --- diff --git a/polkitd/PolicyKit.conf.in b/polkitd/PolicyKit.conf.in new file mode 100644 index 0000000..95c37a2 --- /dev/null +++ b/polkitd/PolicyKit.conf.in @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/polkitd/PolicyKit.in b/polkitd/PolicyKit.in new file mode 100755 index 0000000..e2c2da2 --- /dev/null +++ b/polkitd/PolicyKit.in @@ -0,0 +1,74 @@ +#!/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