aboutsummaryrefslogtreecommitdiff
path: root/tracker-server
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2010-04-17 15:28:14 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2010-04-17 15:28:14 +0000
commit79cb531f8511d0a4f34327b0df4f858bd7cf68f3 (patch)
treeb27164c40e0f0c2e2cc3c28c9f83051f34963350 /tracker-server
parentf519b288d61b29ed35be566a297cd3282bcb2820 (diff)
downloadtrackermap-server-79cb531f8511d0a4f34327b0df4f858bd7cf68f3.tar.gz
trackermap-server-79cb531f8511d0a4f34327b0df4f858bd7cf68f3.tar.bz2
trackermap-server-79cb531f8511d0a4f34327b0df4f858bd7cf68f3.zip
Diffstat (limited to 'tracker-server')
-rw-r--r--tracker-server24
1 files changed, 24 insertions, 0 deletions
diff --git a/tracker-server b/tracker-server
new file mode 100644
index 000000000..b44019a9e
--- /dev/null
+++ b/tracker-server
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+PATH=/sbin:/bin
+
+case "$1" in
+ start)
+ /usr/bin/java -cp /usr/share/tracker-server -jar /usr/share/tracker-server/tracker-server.jar "/etc/tracker-server/configuration.xml" <&- &
+ pid=$!
+ echo ${pid} > /var/run/tracker-server.pid
+ ;;
+ restart|reload|force-reload)
+ echo "Error: argument '$1' not supported" >&2
+ exit 3
+ ;;
+ stop)
+ kill `cat /var/run/tracker-server.pid`
+ rm /var/run/tracker-server.pid
+ ;;
+ *)
+ echo "Usage: $0 start|stop" >&2
+ exit 3
+ ;;
+esac
+