9 PIDFILE=/home/philipp/.wrfeed-webapp.pid
10 export WRFEED_SETTINGS=/home/philipp/daten/Winterrodeln/winterrodeln/wrfeed/wrfeed/development.cfg
20 echo "Usage: ./$ME <start|stop|status|restart>." >&2
25 [ -n "$ARG" ] || die "Missing argument."
28 /sbin/start-stop-daemon --chuid $USER --chdir "$APPDIR" --make-pidfile --background --pidfile $PIDFILE --exec /usr/bin/waitress-serve --start -- --listen=[::1]:$PORT 'wrfeed:app'
33 /sbin/start-stop-daemon --status --pidfile "$PIDFILE"
39 echo not running but PID file exists
45 echo unable to determine status
55 /sbin/start-stop-daemon --stop --remove-pidfile --pidfile "$PIDFILE"
77 die "Unknown argument '$ARG'." >&2