Created
January 6, 2018 07:53
-
-
Save corerman/58dd9f31c065f1394f43bb34f7044612 to your computer and use it in GitHub Desktop.
shell 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
#!/bin/bash | |
case "$1" in | |
"start") | |
echo "$0 starting..."; | |
privoxy /config; | |
echo "$0 started...";; | |
"stop") | |
echo "$0Stoping..."; | |
killall privoxy; | |
echo "$0 Stoped...";; | |
"restart") | |
echo "$0 restarting..."; | |
killall privoxy; | |
privoxy /config; | |
echo "$0 restarted...";; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment