From fe1e02a1debc21534d7c6a468cdf79e544201abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 10 Mar 2013 21:33:45 +0100 Subject: [PATCH] Added run-as-daemon to the readme. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3800d669..d9e9e722 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,13 @@ or Alternatively, the host and port on which to bind can be defined via the configuration. +If you want to run OctoPrint as a daemon, there's another script for that: + + ./run-as-daemon [start|stop|restart] + +It will create a pid file at `/tmp/octoprint.pid` for now. Further commandline arguments will not be evaluated, +so you'll need to define host and port in the configuration file if you want something different there than the default. + Configuration ------------- @@ -235,8 +242,6 @@ Open `~/.octoprint/config.yaml` and add the following lines to it: Restart the OctoPrint server and reload its frontend. You should now see a "Webcam" tab with content. -If everything works, add the startup commands to `/etc/rc.local`. - If you want to be able to shutdown and restart your Pi via the webinterface, you'll first have to add a `sudo` rule for the system user OctoPrint is running under (for me that's the default user `pi`): @@ -263,6 +268,8 @@ After restarting and reloading OctoPrint, this should add a System menu to the t commands. Both are configured to show you a confirmation message before being executed (the `confirm` part) so that you'll hopefully not shutdown or reboot your Pi accidentally. +Once everything works, add the startup commands to `/etc/rc.local`. + Credits -------