repo.or.cz
/
Sak.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix start/stop/pause
[Sak.git]
/
s4kwarner.sh
blob
2e4d7973290493ff230b5b6b5b7af969bf645e32
1
#!/bin/bash
2
3
export
DISPLAY
=:
0
4
5
while
((
1
));
do
6
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
15
fi
16
fi
17
fi
18
19
sleep
10
;
20
21
done
;