dbus: fixed rc-script

This commit is contained in:
Fredrik Rinnestam 2019-06-09 18:48:47 +02:00
parent 14a766e0ad
commit 1a236b9fb1
3 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,7 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/b/x5f4UoGXprOK+Zz87yRZsBYRBbr9rzMFseAAo2hd6VdGRqDDVxhyRZXB0xHw4Yu4nNfR8Fr6BG0Pi7as0uQY=
SHA256 (Pkgfile) = e161e3caed422ceb163eb23b804a5eb63621196292a98a444537e5e3858aca00
RWSE3ohX2g5d/ephbSf4ybWu450wl7bjjsEsIkHQFNw7VL2B4x2Twkw2xFUTouEZItqv3MhQrj+FTsnFXjqMrTx8GqUa0eWABwI=
SHA256 (Pkgfile) = 5749816bb028b7c458158a2f4da709361719df57f631aa19417fe1faba49bcf5
SHA256 (.footprint) = 0bb10d4ddd1725bc19acb90becfb6d521dee201707f71d2a2d2f9a3c50ba0bbc
SHA256 (dbus-1.12.14.tar.gz) = 44f9c290ae8f6cadeb2c329316c03716f171ce10daddd85c0bffd0f7df514c8d
SHA256 (rc.dbus) = ccc40d9bcb9d763b914d598390c0868f85c6447d239084dad0fe776a4ce3f23e
SHA256 (rc.dbus) = 4926a04f787824e55fab97d6f5938ca6bfb8fc95db5f7063fd80907f30b87ef5
SHA256 (30-dbus.launch) = 18ea1e79698bb876f7f5fb298daae5ff6cd17c56764b087f8da2e1d5809af37a

View File

@ -5,7 +5,7 @@
name=dbus
version=1.12.14
release=1
release=2
source=(https://dbus.freedesktop.org/releases/dbus/$name-$version.tar.gz \
rc.dbus 30-dbus.launch)

View File

@ -5,18 +5,19 @@
SSD=/sbin/start-stop-daemon
PROG=/usr/sbin/dbus-daemon
PID=/var/run/dbus/dbus.pid
OPTS="--system"
case $1 in
start)
if [ ! -f /var/lib/dbus/machine-id ]
then
/usr/bin/dbus-uuidgen --ensure
fi
$SSD --start --exec $PROG -- $OPTS
start)
if [ ! -f /var/lib/dbus/machine-id ]
then
/usr/bin/dbus-uuidgen --ensure
fi
$SSD --start --pidfile=$PID --exec $PROG -- $OPTS
;;
stop)
$SSD --stop --retry 10 --exec $PROG
$SSD --stop --remove-pidfile --retry 10 --pidfile=$PID
;;
restart)
$0 stop
@ -25,7 +26,7 @@ restart)
status)
$SSD --status --exec $PROG
case $? in
0) echo "$PROG is running with pid $(pidof $PROG)" ;;
0) echo "$PROG is running with pid $(cat $PID)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;