Skip to content

Commit a282e00

Browse files
authored
Stop machines if task script fails (#318)
1 parent fa9c7f8 commit a282e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

task/common/machine/script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
4747
[Service]
4848
Type=simple
4949
ExecStart=/usr/bin/tpi-task
50-
ExecStop=/bin/bash -c 'systemctl is-system-running | grep stopping || tpi --stop'
50+
ExecStopPost=/bin/bash -c 'systemctl is-system-running | grep stopping || tpi --stop'
5151
EnvironmentFile=/tmp/tpi-environment
5252
WorkingDirectory=/tmp/tpi-task
5353
TimeoutStartSec=%s

0 commit comments

Comments
 (0)