chiark / gitweb /
device: set recursive_stop=true by default
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 01:15:44 +0000 (03:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 01:15:44 +0000 (03:15 +0200)
TODO
src/device.c

diff --git a/TODO b/TODO
index 3f3e54eb94f017f68bb0cf8dd3dd869e780d9989..67d397e3412e0ad56d6ab1c1716c6a0fdaba0555 100644 (file)
--- a/TODO
+++ b/TODO
@@ -72,6 +72,8 @@
 
 * only add quotacheck deps to .mount units which mention grpquota/usrquota in the mount flags
 
 
 * 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.
 External:
 
 * patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup.
index 7b73110120fca436a76489070cb9253b862efd31..0ddd3b3d09734f7e7fe5dd668b01fd68993e8a6a 100644 (file)
@@ -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;
          * 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) {
 }
 
 static void device_done(Unit *u) {