aboutsummaryrefslogtreecommitdiff
path: root/tracker-server
blob: b44019a9e1570ca5dd18324d01687ba7c83749ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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