diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-28 03:15:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-28 03:15:44 +0200 |
commit | 18f593360bfbce6ab5f74d06a97238ff7171df79 (patch) | |
tree | a7ecc2f4073648f2b350061754762d1937bae958 /src/device.c | |
parent | 8aaf019b5ce1a024090350d881739d28fd3b47d4 (diff) |
device: set recursive_stop=true by default
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |