copy from https://gist.githubusercontent.com/scp93ch/5908666/raw/myservice.sh
modified for wicd-webui