Created
January 7, 2017 17:43
-
-
Save lantw44/3866bd4834c794b23a30656f1d63b5a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/sh | |
| service_start () { | |
| sleep 24655 & | |
| sleep 27054 & | |
| sleep 15922 & | |
| } | |
| service_stop () { | |
| kill $(jobs -p) | |
| } | |
| service_start | |
| trap service_stop HUP INT QUIT TERM | |
| while [ "$(jobs -p)" ]; do wait; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment