Created
August 26, 2013 16:25
-
-
Save flengyel/6343440 to your computer and use it in GitHub Desktop.
Ubuntu upstart script for Africa Rapid Indicator Mapping System backend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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