Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-03-28 | job: add debug prints where job type gets changed | Michal Schmidt | |
2012-03-28 | job: fix loss of ordering with restart jobs | Michal Schmidt | |
Suppose that foo.service/start is a job waiting on other job bar.service/start to finish. And then foo.service/restart is enqueued (not using --ignore-dependencies). Currently this makes foo.service start immediately, forgetting about the ordering to bar.service. The runnability check for JOB_RESTART jobs looks only at dependencies for stopping. That's actually correct, because restart jobs should be treated the same as stop jobs at first. The bug is that job_run_and_invalidate() does not treat them exactly the same as stop jobs. unit_start() gets called without checking for the runnability of the converted JOB_START job. The fix is to simplify the switch in job_run_and_invalidate(). Handle JOB_RESTART identically to JOB_STOP. Also simplify the handling of JOB_TRY_RESTART - just convert it to JOB_RESTART if the unit is active and let it fall through to the JOB_RESTART case. Similarly for JOB_RELOAD_OR_START - have a fall through to JOB_START. In job_finish_and_invalidate() it's not necessary to check for JOB_TRY_RESTART with JOB_DONE, because JOB_TRY_RESTART jobs will have been converted to JOB_RESTART already. Speeding up the restart of services in "auto-restart" state still works as before. Improves: https://bugzilla.redhat.com/show_bug.cgi?id=753586 but it's still not perfect. With this fix the try-restart action will wait for the restart to complete in the right order, but the optimal behaviour would be to finish quickly (without disturbing the start job). | |||
2012-01-16 | unit: remove union Unit | Michal Schmidt | |
Now that objects of all unit types are allocated the exact amount of memory they need, the Unit union has lost its purpose. Remove it. "Unit" is a more natural name for the base unit class than "Meta", so rename Meta to Unit. Access to members of the base class gets simplified. | |||
2012-01-14 | util: rework ANSI escape code macros | Lennart Poettering | |
2011-11-11 | job: colored status messages on boot | Michal Schmidt | |
The lack or green/red status marks on boot has been described by some users as "critical", "dramatic", "dealbreaker", "showstopper". Seriously. | |||
2011-10-17 | manager: fix a crash in isolating | Michal Schmidt | |
HASHMAP_FOREACH is safe against the removal of the current entry, but not against the removal of other entries. job_finish_and_invalidate() can recursively remove other entries. It triggered an assertion failure: Assertion 'j->installed' failed at src/manager.c:1218, function transaction_apply(). Aborting. Fix the crash by iterating from the beginning when there is a possibility that the iterator could be invalid. It is O(n^2) in the worst case, but that's better than a crash. https://bugzilla.redhat.com/show_bug.cgi?id=717325 | |||
2011-09-21 | job: after converting a job from restart to start readd it to run queue | Lennart Poettering | |
When we converted a restart job it's time to look again whether any of its dependencies are now runnable. https://bugzilla.redhat.com/show_bug.cgi?id=735013 | |||
2011-04-16 | job: also print status messages when we successfully started a unit | Lennart Poettering | |
2011-04-07 | unit: introduce OnFailureIsolate= | Lennart Poettering | |
2011-04-06 | job: fix deserialization of jobs: do not ignore ordering | Lennart Poettering | |
2011-03-08 | job: introduce new job result code 'skipped' to use when pre conditions of ↵ | Lennart Poettering | |
job did not apply https://bugzilla.redhat.com/show_bug.cgi?id=682245 https://bugzilla.redhat.com/show_bug.cgi?id=635780 | |||
2011-03-08 | job: convert job type as early as we can, to simplify things a bit | Lennart Poettering | |
2011-02-28 | Spelling Corrections | Harald Hoyer | |
Just some lame spelling corrections with no functionality. | |||
2011-02-24 | job: also trigger on-failure dependencies when jobs faile due to ↵ | Lennart Poettering | |
dependencies, timeout | |||
2011-02-24 | job: don't access j->type when j is already freed | Lennart Poettering | |
2011-02-24 | job: start job timeout on enqueuing not when we start to process a job | Lennart Poettering | |
This practically reverses 23e1e0c4a3bc93fb841ac9575953ed5d0ef5282d. This makes it easier to timeout individual jobs so that this timeout can be relied on, since blocked dependencies will not influence the timeout. | |||
2011-02-24 | dbus: pass along information why a job failed when it failed (dbus api change!) | Lennart Poettering | |
2011-02-23 | job: start job timer when we begin running the job, not already when we add ↵ | Lennart Poettering | |
it to the queue of jobs | |||
2011-02-16 | systemctl: introduce --ignore-dependencies | Lennart Poettering | |
2011-02-14 | job: make status message printing more verbose | Lennart Poettering | |
2010-11-18 | job: make sure we don't fail umount.target if a mount unit failed to stop | Lennart Poettering | |
2010-11-14 | job: make it possible to wait for devices to be unplugged | Lennart Poettering | |
2010-10-29 | job: recursively fail BoundBy dependencies | Lennart Poettering | |
2010-10-29 | unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as ↵ | Lennart Poettering | |
weaker counterpart of Conflicts=, similar to Wants= vs. Requires= | |||
2010-09-27 | job: show failure message only for start jobs | Lennart Poettering | |
2010-09-23 | dbus: export number of total failed jobs on D-Bus interface | Lennart Poettering | |
2010-09-21 | manager: measure startup times | Lennart Poettering | |
2010-08-31 | manager: add missing second part of s/maintenance/failed/ | Matthew Miller | |
2010-08-14 | emacs: make sure nobody accidently adds tabs to our sources | Lennart Poettering | |
2010-08-13 | job: don't accidently access a job that doesn't exist anymore | Lennart Poettering | |
2010-08-11 | gc: remove a lot of unused code | Lennart Poettering | |
2010-08-09 | manager: when two pending jobs conflict, keep the one that "conflicts", ↵ | Lennart Poettering | |
remove the one that is "conflicted" This gives the writer of units control which unit is kept and which is stopped when two units conflict. | |||
2010-07-21 | job: make sure restart jobs are readded to the run queue after conversion to ↵ | Lennart Poettering | |
start jobs | |||
2010-07-17 | job: timeout every job independently of the unit | Lennart Poettering | |
2010-07-12 | unit: introduce IgnoreDependencyFailure= | Lennart Poettering | |
2010-07-08 | job: when converting restart jobs, move them to WAITING state | Lennart Poettering | |
2010-07-07 | unit: don't cancel dependent jobs if a stopped daemon returned an error code | Lennart Poettering | |
2010-07-07 | manager: optionally print status updates to console on boot | Lennart Poettering | |
2010-07-05 | dbus: send signals about jobs to the clients having created them ↵ | Lennart Poettering | |
unconditionally, and thus get rid of broadcast signals in most cases | |||
2010-07-01 | unit: shorten active state enums to make systemctl output nicer | Lennart Poettering | |
2010-07-01 | unit: add new abstracted maintenance state for units | Lennart Poettering | |
2010-05-22 | systemctl: add --block switch for synchronous starting of units | Lennart Poettering | |
2010-05-20 | job: don't show (null) prefix in dump | Lennart Poettering | |
2010-05-16 | build-sys: move source files to subdirectory | Lennart Poettering | |