Skip to content

Commit

Permalink
Adjusted init script to new OctoPrint CLI
Browse files Browse the repository at this point in the history
Running in foreground mode requires "serve" keyword since
1.3.0. Still works without, but logs a warning to console.

Also fixed a couple of misspellings of OctoPrint in the init
file while at it (capital P in the middle!) ;)
  • Loading branch information
foosel committed Mar 6, 2017
1 parent f80a180 commit e3e82be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filesystem/root/etc/init.d/octoprint
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# Author: Sami Olmari

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Octoprint Daemon"
NAME="Octoprint"
DESC="OctoPrint Daemon"
NAME="OctoPrint"
DAEMON=/usr/bin/octoprint
PIDFILE=/var/run/$NAME.pid
PKGNAME=octoprint
Expand Down Expand Up @@ -73,7 +73,7 @@ do_start()

if [ $RETVAL != 0 ]; then
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
--exec $DAEMON --chuid $OCTOPRINT_USER --user $OCTOPRINT_USER --umask $UMASK -- $DAEMON_ARGS
--exec $DAEMON --chuid $OCTOPRINT_USER --user $OCTOPRINT_USER --umask $UMASK -- serve $DAEMON_ARGS
RETVAL="$?"
fi
}
Expand Down

0 comments on commit e3e82be

Please sign in to comment.