repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git]
/
uremotedesktop
/
uremotedesktop.sh
blob
144805715cff6260d0bc2619b632aa6da9cc1f90
1
#!/bin/bash
2
3
case
"
$1
"
in
4
start
)
5
echo
"Starting URemoteDesktop server"
6
cd
/
opt
/
uremotedesktop
7
nohup java
-classpath
/
opt
/
uremotedesktop ControllerD
&
8
;;
9
stop
)
10
echo
"Stopping URemoteDesktop server"
11
ps ax |
awk
'/ControllerD/ {print
$1
}'
|
xargs
kill
12
;;
13
restart
)
14
$0
stop
15
sleep
1
16
$0
start
17
;;
18
*)
19
echo
"usage:
$0
{start|stop|restart}"
20
esac
21
exit
0