summaryrefslogtreecommitdiff
path: root/keymaps/samsung-90x3a
diff options
context:
space:
mode:
authorDavid Ward <david.ward@ll.mit.edu>2012-04-29 09:35:48 -0400
committerLennart Poettering <lennart@poettering.net>2012-05-22 01:55:52 +0200
commitf0c7b229e1aba12488ffb3ca39f606cc93291f55 (patch)
treec929cc7c3d0f891083d618a106ba4577ee488b9a /keymaps/samsung-90x3a
parentfeae8adb848e26110b28a06d1244e02f36cdf382 (diff)
service: fix auto-restart handling in service_stop()
When service_stop() handles a service in the SERVICE_AUTO_RESTART state, it calls service_set_state() to transition it to the SERVICE_DEAD state. However if the service failed, it should transition it to SERVICE_FAILED instead, which will trigger its OnFailure units. To achieve this, we now call service_enter_dead() in place of service_set_state(), which will transition the service to either SERVICE_DEAD or SERVICE_FAILED as is appropriate. Also, some misleading comments are adjusted: service_stop() is not only called on a user request, but also during an automatic restart in order to handle dependencies. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45511
Diffstat (limited to 'keymaps/samsung-90x3a')
0 files changed, 0 insertions, 0 deletions