We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ExecStop
1 parent b31ed6b commit e66811dCopy full SHA for e66811d
task/common/machine/script.go
@@ -60,7 +60,7 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
60
After=default.target
61
[Service]
62
Type=simple
63
- ExecStart=/usr/bin/tpi-task
+ ExecStart=-/usr/bin/tpi-task
64
ExecStop=/bin/bash -c 'systemctl is-system-running | grep stopping || echo "{\\\\"result\\\\": \\\\"\$SERVICE_RESULT\\\\", \\\\"code\\\\": \\\\"\$EXIT_STATUS\\\\", \\\\"status\\\\": \\\\"\$EXIT_CODE\\\\"}" > "$TPI_LOG_DIRECTORY/status-$TPI_MACHINE_IDENTITY" && RCLONE_CONFIG= rclone copy "$TPI_LOG_DIRECTORY" "\$RCLONE_REMOTE/reports"'
65
ExecStopPost=/usr/bin/tpi-task-shutdown
66
Environment=HOME=/root
0 commit comments