Skip to content

Commit

Permalink
packages: restart long-running systemd services
Browse files Browse the repository at this point in the history
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 <agarrcia@amazon.com>
  • Loading branch information
arnaldo2792 committed Jun 2, 2022
1 parent d21174d commit 9ee56b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/acpid/acpid.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions packages/open-vm-tools/vmtoolsd.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ConditionVirtualization=vmware

[Service]
ExecStart=/usr/bin/vmtoolsd
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions packages/os/apiserver.service
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9ee56b5

Please sign in to comment.