blob: f66ff6cd6b8ace46490cbc32b87562478a2a393c (
plain)
1
2
3
4
5
6
7
8
9
|
[Unit]
OnSuccess=success-failure-test-success.service
OnFailure=success-failure-test-failure.service
[Service]
Type=notify
Restart=always
ExecStart=bash -c 'test -f /tmp/success-failure-test-ran && touch /tmp/success-failure-test-ran2 && systemd-notify --ready && sleep infinity'
ExecStopPost=touch /tmp/success-failure-test-ran
|