Skip to content

Commit

Permalink
Force poweroff on runner service exiting
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Jacobelli <[email protected]>
  • Loading branch information
jjacobelli committed Jun 18, 2024
1 parent 6a5d9c6 commit f81e364
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linux/context/runner.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ After=docker.service network.target cloud-final.service

[Service]
ExecStart=/runner.sh
ExecStop=sudo poweroff
ExecStop=sudo poweroff -ff
FailureAction=poweroff-immediate
SuccessAction=poweroff-immediate
User=runner
KillMode=process
KillSignal=SIGTERM
Expand Down

0 comments on commit f81e364

Please sign in to comment.