1e0639df |
1 | #!/bin/bash |
1e0639df |
2 | |
124f0dcf |
3 | cd "$(dirname $(readlink -f $0))" |
694d91f3 |
4 | exec &>nohup.out |
1e0639df |
5 | |
231331fa |
6 | if [ -e dontstart ]; then |
7 | exit 0 |
8 | fi |
9 | |
1e0639df |
10 | if ! kill -0 "$(cat pidfile)"; then |
694d91f3 |
11 | nohup ./run.sh & |
1e0639df |
12 | fi |