Remove pidfile on service
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user