Remove pidfile on service

This commit is contained in:
Héctor Molinero Fernández
2020-03-01 17:40:13 +01:00
parent 0b0f5818b1
commit 8a3b2625e2
2 changed files with 5 additions and 6 deletions

View File

@@ -1,4 +1,8 @@
#!/bin/sh
if [ -e /run/dbus/pid ]; then
rm -f /run/dbus/pid
fi
exec 2>&1
exec /usr/bin/chpst -u messagebus /usr/bin/dbus-daemon --system --nofork