From 4d72984583f156be1d74db583667da8539d80bdc Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 1 Mar 2021 19:57:54 +0800 Subject: [PATCH] call systemd-inhibit to prevent shutdown and suspend during an upgrade --- pacroller.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pacroller.service b/pacroller.service index 0500b2a..3ba5549 100644 --- a/pacroller.service +++ b/pacroller.service @@ -5,4 +5,5 @@ After=network-online.target [Service] User=root Type=simple -ExecStart=/usr/bin/pacroller run +ExecStart=/usr/bin/systemd-inhibit /usr/bin/pacroller run +SyslogIdentifier=pacroller