From: Lennart Poettering Date: Thu, 28 Oct 2010 01:15:44 +0000 (+0200) Subject: device: set recursive_stop=true by default X-Git-Tag: v12~125 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=18f593360bfbce6ab5f74d06a97238ff7171df79;hp=8aaf019b5ce1a024090350d881739d28fd3b47d4 device: set recursive_stop=true by default --- diff --git a/TODO b/TODO index 3f3e54eb9..67d397e34 100644 --- a/TODO +++ b/TODO @@ -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 7b7311012..0ddd3b3d0 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) {