Clean up /run/ at startup and move the directory creation logic to each service
This commit is contained in:
@@ -2,5 +2,9 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -d /run/dbus/ ]; then
|
||||
install -m 755 -o messagebus -g messagebus -d /run/dbus/
|
||||
fi
|
||||
|
||||
exec 2>&1
|
||||
exec chpst -u messagebus dbus-daemon --system --nofork --nopidfile
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -d /run/sshd/ ]; then
|
||||
install -m 755 -o root -g root -d /run/sshd/
|
||||
fi
|
||||
|
||||
exec 2>&1
|
||||
exec /usr/sbin/sshd -D
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -d /run/udev/ ]; then
|
||||
install -m 755 -o root -g root -d /run/udev/
|
||||
fi
|
||||
|
||||
exec 2>&1
|
||||
exec /lib/systemd/systemd-udevd
|
||||
|
||||
Reference in New Issue
Block a user