# Rsted upstart # this script will start/stop Rsted description "Rsted Server" version "1.0" author "Valentin Lab" start on started networking stop on runlevel [!2345] env LOG_FILE=/var/log/rsted.log env USER=rsted script chdir /opt/apps/rsted exec sudo -u "$USER" /srv/virtualenv/default/bin/python ./application.py >> "$LOG_FILE" 2>&1 end script