Created
February 29, 2016 18:04
-
-
Save kainam00/a3ef7bf52de91e378497 to your computer and use it in GitHub Desktop.
Yaz Proxy / yazproxy init script
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 | |
# Simple yazproxy init script | |
# chkconfig: 345 20 80 | |
# description: yazproxy | |
# processname: yazproxy | |
# Variables | |
PORT=9001 | |
LOGDEST=/var/log/yazproxy.log | |
case "$1" in | |
start) | |
# Starting services | |
printf "%-50s" "Starting yazproxy on port $PORT and logging to $LOGDEST" | |
yazproxy -l $LOGDEST -D @:$PORT | |
printf "%s\n" "...Ok" | |
;; | |
*) | |
echo "Usage: $0 {start}" | |
exit 1 | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment