# Etherpad-lite upstart # this script will start/stop Etherpad-lite description "Etherpad-Lite Server" version "1.0" author "Valentin Lab" start on started networking stop on runlevel [!2345] env LOG_FILE=/var/log/etherpad-lite.log env USER=etherpad script chdir /opt/apps/etherpad-lite exec sudo -u "$USER" bin/run.sh >> "$LOG_FILE" 2>&1 end script