From 83b8aa0157ecd270e83a5b3943b7313e50ac42f0 Mon Sep 17 00:00:00 2001 From: David Decotigny Date: Sat, 29 Aug 2009 19:15:42 +0200 Subject: [PATCH] added template for daemon startup script --- scripts/maposmaticd.sh-template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/maposmaticd.sh-template diff --git a/scripts/maposmaticd.sh-template b/scripts/maposmaticd.sh-template new file mode 100755 index 00000000..acc0915d --- /dev/null +++ b/scripts/maposmaticd.sh-template @@ -0,0 +1,15 @@ +#! /bin/sh + +_here=`dirname "$0"` +_pydir=`cd "$_here"/.. && /bin/pwd` + +PYTHONPATH="$PYTHONPATH:/path/to/ocitysmap:$_pydir" +export PYTHONPATH + +DJANGO_SETTINGS_MODULE="www.settings" +export DJANGO_SETTINGS_MODULE + +MAPOSMATIC_LOG_FILE="/tmp/maposmaticd.log" +export MAPOSMATIC_LOG_FILE + +exec "$_here"/maposmaticd