This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
functional: add TestReplaceSerialization test to assert serialization…
… of systemd directives This tests asserts that systemd directives are serialized when we transit from the old version of the unit to the new one. Make sure that ExecStartPre of the new one are executed after ExecStopPost of the previous one.
- Loading branch information
Djalal Harouni
committed
Apr 22, 2016
1 parent
9dfa2ef
commit 12b7db5
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Service] | ||
ExecStartPre=/bin/bash -c "echo 'sync'" | ||
ExecStart=/bin/bash -c "while true; do echo Hello, World!; sleep 1; done" | ||
ExecStop=/bin/bash -c "echo 'stopping'" | ||
ExecStopPost=/bin/bash -c "sleep 3; touch /tmp/fleetSyncFile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters