updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / uremotedesktop / uremotedesktop.sh
blob144805715cff6260d0bc2619b632aa6da9cc1f90
1 #!/bin/bash
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
13 restart)
14 $0 stop
15 sleep 1
16 $0 start
19 echo "usage: $0 {start|stop|restart}"
20 esac
21 exit 0