+ /sbin/start-stop-daemon --chuid $USER --chdir "$APPDIR" --make-pidfile --background --pidfile $PIDFILE --exec /usr/bin/waitress-serve --start -- --listen=[::1]:$PORT 'wrfeed:app'
+}
+
+status() {
+ set +e
+ /sbin/start-stop-daemon --status --pidfile "$PIDFILE"
+ case "$?" in
+ 0)
+ echo running
+ ;;
+ 1)
+ echo not running but PID file exists
+ ;;
+ 3)
+ echo not running
+ ;;
+ 4)
+ echo unable to determine status
+ ;;
+ *)
+ die "unknown status"
+ ;;
+ esac