hal: Run as haldaemon, not root.

This commit is contained in:
Brett Goulder 2008-05-18 02:53:14 -04:00
parent 1426208647
commit a27500f768
3 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,3 @@
750cf074e88b6fb7012f26d99cd39b9b hal-0.5.11.tar.gz
7cb56ce5687fa8dcdc870821844240eb hal.conf
cc3d04e7ac09e15f33c530725f43e641 rc.hald
d16e51644aef3590445eb69c3e1214a9 rc.hald

View File

@ -6,7 +6,7 @@
name=hal
version=0.5.11
release=3
release=4
source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
hal.conf
rc.hald)

View File

@ -5,7 +5,8 @@
case $1 in
start)
/usr/sbin/hald --daemon=yes --use-syslog
# Run as haldaemon, not root.
su haldaemon -s /bin/sh -c '/usr/sbin/hald --daemon=yes --use-syslog'
;;
stop)
killall -q /usr/sbin/hald