Skip to content

Instantly share code, notes, and snippets.

@flengyel
Created August 26, 2013 16:25
Show Gist options
  • Save flengyel/6343440 to your computer and use it in GitHub Desktop.
Save flengyel/6343440 to your computer and use it in GitHub Desktop.
Ubuntu upstart script for Africa Rapid Indicator Mapping System backend
# rgis.py job file
# install to /etc/init/rgis.conf
description "Backend service for A-RIMS"
author "Florian Lengyel <florian.lengyel@gmail.com>"
env WORKDIR=/Users/ecr/florian/Dropbox/Programming/REST
start on (filesystem and started autofs and started apache2)
stop on runlevel [016]
respawn
script
cd $WORKDIR
exec sudo -u florian /usr/bin/python rgis.py
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment