Improve comment reason
parent
37f3f771fb
commit
07caef034b
|
@ -79,10 +79,6 @@ class Daemon:
|
||||||
self.daemonize()
|
self.daemonize()
|
||||||
self.run()
|
self.run()
|
||||||
|
|
||||||
# Should the daemon terminate ensure pid removal
|
|
||||||
if os.path.exists(self.pidfile):
|
|
||||||
os.remove(self.pidfile)
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
"""Stop the daemon."""
|
"""Stop the daemon."""
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@ SUCCESS = {}
|
||||||
UPLOAD_FOLDER = settings().getBaseFolder("uploads")
|
UPLOAD_FOLDER = settings().getBaseFolder("uploads")
|
||||||
BASEURL = "/ajax/"
|
BASEURL = "/ajax/"
|
||||||
app = Flask("octoprint")
|
app = Flask("octoprint")
|
||||||
# Only instantiated by the app runner
|
# Only instantiated by the Server().run() method
|
||||||
|
# In order that threads don't start too early when running as a Daemon
|
||||||
printer = None
|
printer = None
|
||||||
gcodeManager = None
|
gcodeManager = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue