You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
357 B

# 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