Last active
September 8, 2016 13:10
-
-
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"
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
# 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