call systemd-inhibit to prevent shutdown and suspend during an upgrade

This commit is contained in:
JerryXiao 2021-03-01 19:57:54 +08:00
parent af92a1bd97
commit 4d72984583
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -5,4 +5,5 @@ After=network-online.target
[Service] [Service]
User=root User=root
Type=simple Type=simple
ExecStart=/usr/bin/pacroller run ExecStart=/usr/bin/systemd-inhibit /usr/bin/pacroller run
SyslogIdentifier=pacroller