upgrades: Don't allow needrestart to restart freedombox-dist-upgrade

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2021-01-10 20:43:46 -08:00
1 parent 0241b82479
commit a66520f3ff
3 files changed
+10 -12

No files matched your search

@@ -1,5 +1,6 @@
# Automatically restart services when needed.
$nrconf{restart} = 'a';
# Don't restart freedombox-manual-upgrade.service.
# Don't restart freedombox upgrade services.
$nrconf{override_rc}->{qr(^freedombox-manual-upgrade\.service$)} = 0;
$nrconf{override_rc}->{qr(^freedombox-dist-upgrade\.service$)} = 0;
@@ -2,8 +2,7 @@
Description=Upgrade to new stable Debian release
[Service]
Type=simple
Type=oneshot
ExecStart=/usr/share/plinth/actions/upgrades dist-upgrade
KillMode=none
TimeoutStopSec=3600
Restart=no
KillMode=process
TimeoutStopSec=900