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

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