From efe6e7d33a9feb0b647c77862016284457895fa6 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 25 Mar 2014 14:15:45 +0100 Subject: 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. --- src/core/service.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/service.h') diff --git a/src/core/service.h b/src/core/service.h index 1992926e92..fd05e9be89 100644 --- a/src/core/service.h +++ b/src/core/service.h @@ -189,6 +189,7 @@ struct Service { RateLimit start_limit; StartLimitAction start_limit_action; + char *reboot_arg; UnitRef accept_socket; -- cgit v1.2.3-54-g00ecf