Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@frank4565
Created October 26, 2013 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frank4565/7166629 to your computer and use it in GitHub Desktop.
Save frank4565/7166629 to your computer and use it in GitHub Desktop.
Squid Launch Script in /etc/init.d for OpenWRT
#!/bin/sh /etc/rc.common
# Example script
# Copyright (C) 2007 OpenWrt.org
START=99
STOP=99
start() {
echo start
# commands to launch application - PLEASE DO YOUR PATH IN HERE
# this is my PATH - different from the tutorial above
squid
}
stop() {
echo stop
# commands to kill application - PLEASE DO YOUR PATH IN HERE
# this is my PATH - different from the tutorial above
squid -k shutdown
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment