From 9ee56b5ecdfc35b2168c03c37d3103aa7f265f62 Mon Sep 17 00:00:00 2001 From: Arnaldo Garcia Rincon Date: Tue, 31 May 2022 17:01:22 +0000 Subject: [PATCH] packages: restart long-running systemd services This adds the 'Restart' and 'RestartSec' directives to the following services since they must be running even if they exit or are killed by the OS: - acpid - vmtoolsd - apiserver Signed-off-by: Arnaldo Garcia Rincon --- packages/acpid/acpid.service | 2 ++ packages/open-vm-tools/vmtoolsd.service | 2 ++ packages/os/apiserver.service | 2 ++ 3 files changed, 6 insertions(+) diff --git a/packages/acpid/acpid.service b/packages/acpid/acpid.service index 7c89aaca70c..ffaf58a5de5 100644 --- a/packages/acpid/acpid.service +++ b/packages/acpid/acpid.service @@ -4,6 +4,8 @@ Description=ACPI event daemon [Service] Type=forking ExecStart=/usr/sbin/acpid -c /usr/lib/acpid/events +Restart=always +RestartSec=5 [Install] WantedBy=preconfigured.target diff --git a/packages/open-vm-tools/vmtoolsd.service b/packages/open-vm-tools/vmtoolsd.service index e5417b1a49f..97c6d8a52de 100644 --- a/packages/open-vm-tools/vmtoolsd.service +++ b/packages/open-vm-tools/vmtoolsd.service @@ -5,6 +5,8 @@ ConditionVirtualization=vmware [Service] ExecStart=/usr/bin/vmtoolsd +Restart=always +RestartSec=5 [Install] WantedBy=multi-user.target diff --git a/packages/os/apiserver.service b/packages/os/apiserver.service index 79814e46823..29af00b04e7 100644 --- a/packages/os/apiserver.service +++ b/packages/os/apiserver.service @@ -6,6 +6,8 @@ Requires=storewolf.service migrator.service [Service] Type=notify ExecStart=/usr/bin/apiserver --datastore-path /var/lib/bottlerocket/datastore/current --socket-gid 274 +Restart=always +RestartSec=5 StandardError=journal+console [Install]