wok-current rev 16589

dbus: fix init script (with /run and /var/run mounted as tmpfs, we can't preinstall /var/run/dbus, we must create it)
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 05 19:10:34 2014 +0200 (2014-05-05)
parents b60b141fe2e0
children 95bed3ed6d9b
files dbus/stuff/etc/init.d/dbus
line diff
     1.1 --- a/dbus/stuff/etc/init.d/dbus	Sun May 04 23:55:15 2014 +0200
     1.2 +++ b/dbus/stuff/etc/init.d/dbus	Mon May 05 19:10:34 2014 +0200
     1.3 @@ -10,7 +10,7 @@
     1.4  DESC="message bus daemon"
     1.5  DAEMON=/usr/bin/dbus-daemon
     1.6  OPTIONS=$DBUS_OPTIONS
     1.7 -PIDFILE=/var/run/dbus/pid
     1.8 +PIDFILE=/run/dbus/pid
     1.9  MACHINE_ID=/var/lib/dbus/machine-id
    1.10  
    1.11  if [ ! -f $MACHINE_ID ] ; then
    1.12 @@ -23,6 +23,7 @@
    1.13        echo "$NAME already running."
    1.14        exit 1
    1.15      fi
    1.16 +    mkdir -p /run/dbus
    1.17      echo -n "Starting $DESC: $NAME... "
    1.18      $DAEMON $OPTIONS
    1.19      status
    1.20 @@ -42,6 +43,7 @@
    1.21        echo "$NAME is not running."
    1.22        exit 1
    1.23      fi
    1.24 +    mkdir -p /run/dbus
    1.25      echo -n "Restarting $DESC: $NAME... "
    1.26      kill `cat $PIDFILE`
    1.27      rm $PIDFILE