[osm-tile-server] 19/117: Added init script
Ruben Undheim
rubund-guest at moszumanska.debian.org
Tue Nov 3 23:18:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch master
in repository osm-tile-server.
commit f00b28b93abfa371192da5f773138ffcea202891
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date: Thu Sep 3 01:28:21 2015 +0200
Added init script
---
debian/osm-tile-server-tilelite.init | 59 ++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/debian/osm-tile-server-tilelite.init b/debian/osm-tile-server-tilelite.init
new file mode 100644
index 0000000..90528e0
--- /dev/null
+++ b/debian/osm-tile-server-tilelite.init
@@ -0,0 +1,59 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: osm-tile-server-tilelite
+# Required-Start: $remote_fs postgresql
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: <Enter a short description of the software>
+# Description: <Enter a long description of the software>
+# <...>
+# <...>
+### END INIT INFO
+
+# Author: ruben <ruben.undheim at gmail.com>
+
+
+DESC="OSM tile server using tilelite"
+NAME=osm-tile-server-tilelite
+
+RUNASUSER=""
+
+. /lib/lsb/init-functions
+
+
+do_start(){
+
+ echo "starting"
+ /bin/su $RUNASUSER -c "/usr/bin/screen -dmS tilelite /usr/bin/liteserv /usr/share/openstreetmap-carto/style.xml -c --cache-path=/var/cache/osm-tile-server-tilelite"
+
+}
+
+do_stop(){
+
+ echo "stopping"
+ /bin/su $RUNASUSER -c "/usr/bin/screen -S tilelite -X quit"
+
+}
+
+case "$1" in
+ start)
+ do_start
+ ;;
+ stop|graceful-stop)
+ do_stop
+ ;;
+ status)
+ ;;
+ reload|force-reload|graceful)
+ ;;
+ restart)
+ do_stop
+ do_start
+ ;;
+esac
+
+exit 0
+
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osm-tile-server.git
More information about the Pkg-grass-devel
mailing list