diff options
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/device.c | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -72,6 +72,8 @@ * only add quotacheck deps to .mount units which mention grpquota/usrquota in the mount flags +* Introduce weaker Conflicts. + External: * patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup. diff --git a/src/device.c b/src/device.c index 7b73110120..0ddd3b3d09 100644 --- a/src/device.c +++ b/src/device.c @@ -69,6 +69,12 @@ static void device_init(Unit *u) { * happen for the other units since their operations time out * anyway. */ d->meta.job_timeout = DEFAULT_TIMEOUT_USEC; + + /* We enable recursive stopping by default for all + devices. This enables the user to use Requires= to make a + service go a way when a device goes away, and Wants= + otherwise. */ + d->meta.recursive_stop = true; } static void device_done(Unit *u) { |