device: set recursive_stop=true by default
This commit is contained in:
parent
8aaf019b5c
commit
18f593360b
2
TODO
2
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:
|
External:
|
||||||
|
|
||||||
* patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup.
|
* patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup.
|
||||||
|
|
|
@ -69,6 +69,12 @@ static void device_init(Unit *u) {
|
||||||
* happen for the other units since their operations time out
|
* happen for the other units since their operations time out
|
||||||
* anyway. */
|
* anyway. */
|
||||||
d->meta.job_timeout = DEFAULT_TIMEOUT_USEC;
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue