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

@@ -80,10 +80,5 @@ if [ ! -f "${RDP_TLS_KEY_PATH:?}" ] || [ ! -f "${RDP_TLS_CERT_PATH:?}" ]; then
) >/dev/null
fi
# Remove dbus pidfile
if [ -e /run/dbus/pid ]; then
rm -f /run/dbus/pid
fi
# Start all services
# Start runit
exec tini -- runsvdir -P /etc/service/

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