Added hal-0.5.12rc1 template.
--HG-- extra : convert_revision : 8f3db664b145683fd8d5e52048fd890b49baa787
This commit is contained in:
32
templates/hal/files/hal
Normal file
32
templates/hal/files/hal
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: hal
|
||||
# REQUIRE: DAEMON dbus
|
||||
# KEYWORD: shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="hal"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/hald"
|
||||
pidfile="/var/run/hald/pid"
|
||||
start_precmd=hal_prestart
|
||||
|
||||
hal_prestart() {
|
||||
dirs="/var/run/hald /var/cache/hald"
|
||||
for d in ${dirs}; do
|
||||
if [ ! -d ${d} ]; then
|
||||
mkdir ${d}
|
||||
chmod 0755 ${d}
|
||||
chown hal:hal ${d}
|
||||
fi
|
||||
done
|
||||
for f in hald-local hald-runner; do
|
||||
if [ ! -x /var/run/hald/${f} ]; then
|
||||
touch /var/run/hald/${f}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user