fix start/stop/pause
[Sak.git] / s4kwarner.sh
blob2e4d7973290493ff230b5b6b5b7af969bf645e32
1 #!/bin/bash
3 export DISPLAY=:0
5 while((1)); do
7 pgrep X > /dev/null
8 if [ $? == 0 ] ; then
9 pgrep sak > /dev/null
10 if [ $? == 1 ]; then
11 xmessage -buttons ok,run:17 -c "SAK not running!";
12 if [ $? == 17 ]; then
13 xmessage -c "STARTING SAK!!!";
14 start-stop-daemon --start /root/progetti/Sak/sak
19 sleep 10;
21 done;