]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: allow and use SuccessAction=exit-force in system systemd-exit.service
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Oct 2018 14:34:45 +0000 (16:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 17:32:07 +0000 (19:32 +0200)
commita400bd8c2a6285576edf8e2147e1d17aab129501
tree9ab9c6d40c7ce6543f9252f6466f7f09ad02e77f
parentafa6206583dfbc93e29981cb5d713841e4ca2865
units: allow and use SuccessAction=exit-force in system systemd-exit.service

C.f. 287419c119ef961db487a281162ab037eba70c61: 'systemctl exit 42' can be
used to set an exit value and pulls in exit.target, which pulls in systemd-exit.service,
which calls org.fdo.Manager.Exit, which calls method_exit(), which sets the objective
to MANAGER_EXIT. Allow the same to happen through SuccessAction=exit.

v2: update for 'exit' and 'exit-force'
man/systemd.unit.xml
src/core/emergency-action.c
src/test/test-emergency-action.c
units/meson.build
units/systemd-exit.service [moved from units/systemd-exit.service.in with 88% similarity]