Skip to content

Instantly share code, notes, and snippets.

@rspeed
Created January 10, 2015 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rspeed/d37acd6fc447eac1cb3e to your computer and use it in GitHub Desktop.
Save rspeed/d37acd6fc447eac1cb3e to your computer and use it in GitHub Desktop.
OctoPrint Daemon Cleanup
root@octoprint:/ # ps ax | grep octoprint
3221 2 D+J 0:00.00 grep octoprint
root@octoprint:/ # service octoprint start
Starting octoprint.
root@octoprint:/ # ps ax | grep octoprint
3237 - SJ 0:01.07 /usr/local/bin/python /usr/local/bin/octoprint --basedir /usr/local/etc/octoprint --daemon start --pid /tmp/octoprint.pid (python2.7)
3239 2 S+J 0:00.00 grep octoprint
root@octoprint:/ # service octoprint stop
Stopping octoprint.
Waiting for PIDS: 3237.
root@octoprint:/ # ps ax | grep octoprint
3254 2 RL+J 0:00.00 grep octoprint
root@octoprint:/ # service octoprint start
Starting octoprint.
pidfile /tmp/octoprint.pid already exist. Daemon already running?
/usr/local/etc/rc.d/octoprint: WARNING: failed to start octoprint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment