Created
October 26, 2013 08:08
-
-
Save frank4565/7166629 to your computer and use it in GitHub Desktop.
Squid Launch Script in /etc/init.d for OpenWRT
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/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