Skip to content

Instantly share code, notes, and snippets.

@pettazz
Created April 6, 2015 19:18
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 pettazz/ea565f52239eee9477d8 to your computer and use it in GitHub Desktop.
Save pettazz/ea565f52239eee9477d8 to your computer and use it in GitHub Desktop.
make transmission wait for openvpn
#!/bin/bash
SERVICE=openvpn;
while [[ test $(ps -ef |grep ${SERVICE}) -gt 0 ]]
do
echo "waiting for openvpn..."
sleep 1m
done
service transmission-daemon start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment