Skip to content

Instantly share code, notes, and snippets.

@kainam00
Created February 29, 2016 18:04
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 kainam00/a3ef7bf52de91e378497 to your computer and use it in GitHub Desktop.
Save kainam00/a3ef7bf52de91e378497 to your computer and use it in GitHub Desktop.
Yaz Proxy / yazproxy init script
#!/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