Skip to content

Instantly share code, notes, and snippets.

@corerman
Created January 6, 2018 07:53
Show Gist options
  • Save corerman/58dd9f31c065f1394f43bb34f7044612 to your computer and use it in GitHub Desktop.
Save corerman/58dd9f31c065f1394f43bb34f7044612 to your computer and use it in GitHub Desktop.
shell service
#!/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