Created
February 19, 2015 22:12
-
-
Save slav123/719a432228dfc29f89a2 to your computer and use it in GitHub Desktop.
hlreporter
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/bash | |
# hlreporter service controller script | |
cd "/root/hlreporter-1.0.10/" | |
case "$1" in | |
start) | |
./hlreporter multirun & | |
;; | |
stop) | |
kill $(ps aux | grep '[p]ython ./hlreporter multirun' | awk '{print $2}') | |
;; | |
*) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment