aboutsummaryrefslogtreecommitdiff
path: root/setup/other
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 21:22:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 21:22:46 +1200
commit1432d04a7be8397becd5c88f9e1f075861acbfdc (patch)
treefa7a4b6619ffee11a4eac9d28f5ab56d4d1fe3d0 /setup/other
parent99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4 (diff)
downloadtrackermap-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.tar.gz
trackermap-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.tar.bz2
trackermap-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.zip
Update packaging scripts
Diffstat (limited to 'setup/other')
-rw-r--r--setup/other/traccar.service12
-rw-r--r--setup/other/traccar.sh48
2 files changed, 0 insertions, 60 deletions
diff --git a/setup/other/traccar.service b/setup/other/traccar.service
deleted file mode 100644
index 4b7404653..000000000
--- a/setup/other/traccar.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=traccar
-After=network.target
-
-[Service]
-Type=simple
-WorkingDirectory=/opt/traccar
-ExecStart=/bin/sh -c "exec java -jar tracker-server.jar conf/traccar.xml"
-SyslogIdentifier=traccar
-
-[Install]
-WantedBy=multi-user.target
diff --git a/setup/other/traccar.sh b/setup/other/traccar.sh
deleted file mode 100644
index fdf1b78e4..000000000
--- a/setup/other/traccar.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-#service traccar server for universal version
-#e.g. ./traccar.sh start
-#e.g. ./traccar.sh stop
-#e.g. ./traccar.sh restart
-
-SERVICE_NAME=traccar
-PATH_TO_JAR=tracker-server.jar
-PATH_TO_CONF=conf/traccar.xml
-PID_PATH_NAME=/tmp/traccar-pid
-case $1 in
- start)
- echo "Starting $SERVICE_NAME ..."
- if [ ! -f $PID_PATH_NAME ]; then
- nohup java -jar $PATH_TO_JAR $PATH_TO_CONF /tmp 2>> /dev/null >> /dev/null &
- echo $! > $PID_PATH_NAME
- echo "$SERVICE_NAME started ..."
- else
- echo "$SERVICE_NAME is already running ..."
- fi
- ;;
- stop)
- if [ -f $PID_PATH_NAME ]; then
- PID=$(cat $PID_PATH_NAME);
- echo "$SERVICE_NAME stoping ..."
- kill $PID;
- echo "$SERVICE_NAME stopped ..."
- rm $PID_PATH_NAME
- else
- echo "$SERVICE_NAME is not running ..."
- fi
- ;;
- restart)
- if [ -f $PID_PATH_NAME ]; then
- PID=$(cat $PID_PATH_NAME);
- echo "$SERVICE_NAME stopping ...";
- kill $PID;
- echo "$SERVICE_NAME stopped ...";
- rm $PID_PATH_NAME
- echo "$SERVICE_NAME starting ..."
- nohup java -jar $PATH_TO_JAR $PATH_TO_CONF /tmp 2>> /dev/null >> /dev/null &
- echo $! > $PID_PATH_NAME
- echo "$SERVICE_NAME started ..."
- else
- echo "$SERVICE_NAME is not running ..."
- fi
- ;;
-esac