Skip to content

Instantly share code, notes, and snippets.

@leventyalcin
Last active September 8, 2016 13:10
Show Gist options
  • Save leventyalcin/0bd187a166d72bb5f3de9b09f9c5bc0f to your computer and use it in GitHub Desktop.
Save leventyalcin/0bd187a166d72bb5f3de9b09f9c5bc0f to your computer and use it in GitHub Desktop.
upstart's bullshit! how I'm gonna start a friggin service if it is not started! grep and friggin string comparison? I expect to be able to "status SERVICE || start SERVICE"
# start pritunl
start: Job is already running: pritunl
# echo $?
1
# status pritunl
pritunl start/running, process 8261
# echo $?
0
# stop pritunl
pritunl stop/waiting
# status pritunl
pritunl stop/waiting
# echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment