Skip to content

Commit

Permalink
tasks: Run all cockpit-tasks@* instances in a systemd slice
Browse files Browse the repository at this point in the history
With this we can react to all tasks containers shutting down. It also
makes it easier to stop all instances without having to resort to
globbing or knowing how many instances a host has.

Note: Avoid a `-` in the name, as that will create a
sub-directory/slice.
  • Loading branch information
martinpitt committed Apr 8, 2024
1 parent 68110bd commit 14208d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/install-service
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Requires=podman.socket
After=podman.socket
[Service]
Slice=cockpittasks.slice
Restart=always
RestartSec=60
# give image pull enough time
Expand Down

0 comments on commit 14208d6

Please sign in to comment.