summaryrefslogtreecommitdiff
path: root/src/tty-ask-password-agent
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-06-26 11:42:52 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-06-26 11:42:52 +0200
commit0c7f15b3a95c3596a4756de5c44eb1fdcd0034fc (patch)
treeb3c00ed316a1df5a01a69a90a7bc24255b324ab7 /src/tty-ask-password-agent
parente201a0384da94f57f65c951a97d8ddaf990d6240 (diff)
service: pass via FAILED/DEAD before going to AUTO_RESTART
With misconfigured mysql, which uses Restart=always, the following two messages would loop indefinitely and the "systemctl start" would never finish: Job pending for unit, delaying automatic restart. mysqld.service holdoff time over, scheduling restart. In service_enter_dead() always set the state to SERVICE_FAILED/DEAD first before setting SERVICE_AUTO_RESTART. This is to allow running jobs to complete. OnFailure will be also triggered at this point, so there's no need to do it again from service_stop() (where it was added in commit f0c7b229). Note that OnFailure units should better trigger only after giving up auto-restarting, but that's for another patch to solve. https://bugzilla.redhat.com/show_bug.cgi?id=832039
Diffstat (limited to 'src/tty-ask-password-agent')
0 files changed, 0 insertions, 0 deletions