fork 0k-charms
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
359 B

  1. # Etherpad-lite upstart
  2. # this script will start/stop Etherpad-lite
  3. description "Etherpad-Lite 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/etherpad-lite.log
  9. env USER=etherpad
  10. script
  11. chdir /opt/apps/etherpad-lite
  12. exec sudo -u "$USER" bin/run.sh >> "$LOG_FILE" 2>&1
  13. end script