diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-28 18:48:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-28 18:48:42 +0100 |
commit | 3282591dc30b2934a895c7403d2f0b0690260947 (patch) | |
tree | 68fef5b38a9b448fcdcd8e48be65daa38470acc7 /src/core/job.h | |
parent | 2fcee0a59a48a1381bb4c0ecf5a2dcbb1015341e (diff) |
core: make sure "systemctl reload-or-try-restart is actually a noop if a unit is not running
This makes sure we follow the same basic logic for try-restart if we have a try-reload.
Fixes #688
Diffstat (limited to 'src/core/job.h')
-rw-r--r-- | src/core/job.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/job.h b/src/core/job.h index 118b24e5b7..52866fdc48 100644 --- a/src/core/job.h +++ b/src/core/job.h @@ -66,6 +66,9 @@ enum JobType { * Thus we never need to merge it with anything. */ JOB_TRY_RESTART = _JOB_TYPE_MAX_IN_TRANSACTION, /* if running, stop and then start */ + /* Similar to JOB_TRY_RESTART but collapses to JOB_RELOAD or JOB_NOP */ + JOB_TRY_RELOAD, + /* JOB_RELOAD_OR_START won't enter into a transaction and cannot result * from transaction merging (there's no way for JOB_RELOAD and * JOB_START to meet in one transaction). It can result from a merge |