Skip to content

Instantly share code, notes, and snippets.

@lantw44
Created January 7, 2017 17:43
Show Gist options
  • Select an option

  • Save lantw44/3866bd4834c794b23a30656f1d63b5a2 to your computer and use it in GitHub Desktop.

Select an option

Save lantw44/3866bd4834c794b23a30656f1d63b5a2 to your computer and use it in GitHub Desktop.
#!/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