diff options
author | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2010-01-28 00:24:52 +0100 |
---|---|---|
committer | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2010-01-28 00:38:51 +0100 |
commit | 35211e52f175bb31cf3315689c5da7185362672e (patch) | |
tree | 298a05658b0094ad55b5084fce7d8196a8811499 /recipes/hal/files | |
parent | cdfded760fe70a7de824afa012b1fe3b3713a283 (diff) |
hal: if necessary, create $CACHEDIR before starting the daemon. Closes: #3740.
Diffstat (limited to 'recipes/hal/files')
-rw-r--r-- | recipes/hal/files/20hal | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/hal/files/20hal b/recipes/hal/files/20hal index 926bd893e2..e98cc8ac6e 100644 --- a/recipes/hal/files/20hal +++ b/recipes/hal/files/20hal @@ -11,6 +11,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/hald +CACHEDIR=/var/cache/hald PIDDIR=/var/run/hald PIDFILE=$PIDDIR/pid NAME=hald @@ -26,6 +27,10 @@ do_start() { mkdir -p $PIDDIR chown $DAEMONUSER:$DAEMONUSER $PIDDIR fi + if [ ! -d $CACHEDIR ]; then + mkdir -p $CACHEDIR + chown $DAEMONUSER:$DAEMONUSER $CACHEDIR + fi echo "Starting $DESC" "$NAME" start-stop-daemon --start --pidfile $PIDFILE \ --exec $DAEMON -- $DAEMON_OPTS |