dbus: update to 1.10.16
[openadk.git] / package / dbus / files / dbus.init
blob6f8b38d796d678929c4602a25c1df0e8f7f09447
1 #!/bin/sh
2 #PKG dbus
3 #INIT 60
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${dbus:-NO}" = x"NO" && exit 0
10 test x"$dbus" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 mkdir -p /run/dbus /var/lib
15 ln -sf /lib/dbus /var/lib/dbus
16 /usr/bin/dbus-daemon --system
18 stop)
19 kill $(pgrep -f /usr/bin/dbus-daemon)
21 restart)
22 sh $0 stop
23 sh $0 start
26 echo "Usage: $0 {start | stop | restart}"
27 exit 1
29 esac
30 exit $?