systemd/src
David Ward f0c7b229e1 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
2012-05-22 01:55:52 +02:00
..
ac-power build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
analyze systemd-analyze: switch to python getopt for argument parsing 2012-05-22 01:34:19 +02:00
ask-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
binfmt util: split-out conf-file.[ch] 2012-05-07 19:01:24 +02:00
cgls util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
cgroups-agent build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
cgtop cgtop: change default depth to 3 2012-05-22 01:48:40 +02:00
core service: fix auto-restart handling in service_stop() 2012-05-22 01:55:52 +02:00
cryptsetup cryptsetup: support discards (TRIM) 2012-05-21 17:28:06 +02:00
delta delta/delta.c: initialize bottom for fail state 2012-05-21 18:51:44 +02:00
detect-virt silence a bunch of gcc warnings 2012-04-17 18:42:09 +02:00
fsck build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
getty-generator container: spawn a getty instead of a sulogin in a container 2012-04-22 02:41:18 +02:00
gudev update .gitignore 2012-04-13 21:49:25 +02:00
hostname relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
initctl build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
journal Fixed handling of posix_fallocate() returned value 2012-05-22 01:45:11 +02:00
libsystemd-daemon update .gitignore 2012-04-13 21:58:01 +02:00
libsystemd-id128 update .gitignore 2012-04-13 21:58:01 +02:00
libudev udev: update docs, NEWS 2012-05-15 23:44:28 +02:00
locale relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
login login: minor typo fix 2012-05-21 15:22:28 +02:00
machine-id-setup machine-id-setup: add the usual command line parameters 2012-04-12 15:07:24 +02:00
modules-load util: split-out conf-file.[ch] 2012-05-07 19:01:24 +02:00
notify build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
nspawn util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
quotacheck build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
random-seed build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
rc-local-generator rc-local-generator: hook halt-local in based on generator too 2012-05-03 16:00:49 +02:00
readahead readahead: store inode numbers in pack file 2012-05-04 00:34:12 +02:00
remount-fs util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
reply-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
shared util: rework in_initrd() logic 2012-05-21 20:00:58 +02:00
shutdownd build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
sleep sleep: implement suspend/hibernate as first class targets 2012-05-08 13:54:23 +02:00
stdio-bridge build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
sysctl util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
systemctl delta: fix spelling of overridden 2012-05-21 18:31:43 +02:00
systemd sd-login: update header docs a bit 2012-05-14 22:41:30 +02:00
test util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
timedate util: split-out hwclock.[ch] 2012-05-08 01:57:17 +02:00
timestamp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
tmpfiles tmpfiles: if we are supposed to write a string to a file, it's OK if we can't write the trailing newline 2012-05-15 14:35:51 +02:00
tty-ask-password-agent util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
udev keymap: Add Mio N890 2012-05-14 13:06:48 +02:00
update-utmp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
vconsole vconsole: fix some error messages 2012-05-03 15:10:09 +02:00
.gitignore move libsystemd-id128, libsystemd-daemon to subdir 2012-04-12 15:26:39 +02:00
Makefile relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00