chiark / gitweb /
service: add support for reboot argument when triggered by StartLimitAction=
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 25 Mar 2014 13:15:45 +0000 (14:15 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Apr 2014 13:58:53 +0000 (09:58 -0400)
commitefe6e7d33a9feb0b647c77862016284457895fa6
tree1f68e82474c08a7510b25f0d8226ec11143edaca
parentc5220a940d00fc2520c702104939d0a4cf637254
service: add support for reboot argument when triggered by StartLimitAction=

When rebooting with systemctl, an optional argument can be passed to the
reboot system call. This makes it possible the specify the argument in a
service file and use it when the service triggers a restart.
This is useful to distinguish between manual reboots and reboots caused by
failing services.
man/systemd.service.xml
src/core/dbus-service.c
src/core/load-fragment-gperf.gperf.m4
src/core/service.c
src/core/service.h