summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-16 21:59:31 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-16 21:59:31 +0100
commite67c3609b18ab09499b361e18addfcfdec853fdd (patch)
treef7c3a73f95535ce06507cbfbbff5572b7464ef17 /src/job.c
parent30732560c415f52d2a58fc8fab10b602a40c7274 (diff)
systemctl: introduce --ignore-dependencies
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/job.c b/src/job.c
index 18a249592b..4700aab6ac 100644
--- a/src/job.c
+++ b/src/job.c
@@ -309,8 +309,12 @@ bool job_is_runnable(Job *j) {
/* Checks whether there is any job running for the units this
* job needs to be running after (in the case of a 'positive'
- * job type) or before (in the case of a 'negative' job type
- * . */
+ * job type) or before (in the case of a 'negative' job
+ * type. */
+
+ /* First check if there is an override */
+ if (j->ignore_deps)
+ return true;
if (j->type == JOB_START ||
j->type == JOB_VERIFY_ACTIVE ||
@@ -667,7 +671,8 @@ DEFINE_STRING_TABLE_LOOKUP(job_type, JobType);
static const char* const job_mode_table[_JOB_MODE_MAX] = {
[JOB_FAIL] = "fail",
[JOB_REPLACE] = "replace",
- [JOB_ISOLATE] = "isolate"
+ [JOB_ISOLATE] = "isolate",
+ [JOB_IGNORE_DEPENDENCIES] = "ignore-dependencies"
};
DEFINE_STRING_TABLE_LOOKUP(job_mode, JobMode);