mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
5e8deb94c6
Allow to setup new bind mounts for a service at runtime (via either DBUS or a new 'systemctl bind' verb) with a new helper that forks into the unit's mount namespace. Add a new integration test to cover this. Useful for zero-downtime addition to services that are running inside mount namespaces, especially when using RootImage/RootDirectory. If a service runs with a read-only root, a tmpfs is added on /run to ensure we can create the airlock directory for incoming mounts under /run/host/incoming.
6 lines
190 B
Desktop File
6 lines
190 B
Desktop File
[Service]
|
|
RuntimeMaxSec=10
|
|
Type=notify
|
|
RemainAfterExit=yes
|
|
ExecStart=/bin/sh -c 'systemd-notify --ready; while ! grep -q -F MARKER_RUNTIME /tmp/testfile_runtime; do sleep 0.1; done; exit 0'
|