Skip to content

Instantly share code, notes, and snippets.

@slav123
Created February 19, 2015 22:12
Show Gist options
  • Save slav123/719a432228dfc29f89a2 to your computer and use it in GitHub Desktop.
Save slav123/719a432228dfc29f89a2 to your computer and use it in GitHub Desktop.
hlreporter
#!/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