Created
March 27, 2015 12:02
-
-
Save BugRoger/f2e7aa62734f25482ace to your computer and use it in GitHub Desktop.
systemd Sidekick
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
[Unit] | |
Requires=robin.service | |
Before=robin.service | |
[Service] | |
ExecStart=/bin/bash -c '\ | |
echo "batman start"; \ | |
while true; do \ | |
echo "batman alive"; \ | |
sleep 1; \ | |
done' | |
ExecStop=/usr/bin/echo "batman stop" |
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
[Unit] | |
Requires=batman.service | |
After=batman.service | |
BindsTo=batman.service | |
[Service] | |
ExecStart=/bin/bash -c '\ | |
echo "robin start"; \ | |
while true; do \ | |
echo "robin alive"; \ | |
sleep 1; \ | |
done' | |
ExecStop=/usr/bin/echo "robin stop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment