Kyle Evans
35f4b9e601
print() uses file=, not stream= -- fix that, fix the error
2016-10-07 14:46:03 -05:00
Gina Häußge
76a04cbe9d
Merge branch 'dev/python3B' of https://github.com/ByReaL/OctoPrint into pr/ByReaL/dev/python3B
2016-07-15 11:28:55 +02:00
MirceaDan
bf320a8c43
python3: os.umask(002) to os.umask(0o002)
...
os.umask(0o002) is the python 2/3 way
2016-07-15 01:18:11 -07:00
MirceaDan
c33a9f9aa2
from __future__ import absolute_import, division, print_function
...
changed the behavior to import division and print to be consistent
across all app and similar with python 3.x
2016-07-15 00:16:58 -07:00
Kyle Evans
75f8facb05
Make Server class octoprint_daemon-aware, make sure terminated() gets invoked on it upon SIGTERM and update respective test
2016-05-09 09:40:50 -05:00
Gina Häußge
56805ab13d
Refactored Daemon helper, added status command and added unit tests for all of it
2015-10-29 12:45:58 +01:00
Rob Speed
062131a10e
Renamed delpid to term to better match its modified behavior. Moved the registration of the SIGTERM handler to avoid an extremely unlikely race condition.
2015-01-10 01:34:47 -08:00
Rob Speed
6c78049886
Fixes issue where a daemonized OctoPrint doesn't clean up after itself after receiving SIGTERM.
2015-01-10 00:24:25 -08:00
Tonnerre LOMBARD
f7f8c09a77
Actually, umask 002 is what we want here.
2013-10-27 02:39:29 +02:00
Tonnerre LOMBARD
37c949e83b
Currently, octoprint gives write access to all files in its data
...
directory to everybody.
This was probably considered appropriate for the case of octoprint
running on a single-user device, but given that Unix has groups
support, it is not necessary, and can be very harmful.
2013-10-27 02:32:14 +02:00
Gina Häußge
51ae782f02
Moved octoprint sources to "src" folder, adjusted setup.py and run script accordingly
2013-09-15 21:45:33 +02:00