Chibald / maestrogateway

Manage MCZ pellet stoves that are equipped with Maestro technology
GNU General Public License v3.0
38 stars 13 forks source link

Feature/systemservice #16

Closed tharts closed 3 years ago

tharts commented 3 years ago

Improving the installation of the script as system service.

Currently the service expects the maestro.py to fork itself and exit but it doesn't. This is causing that calling sudo systemctl start maestro.service doesn't return to command line. The service itself is running as user root with all the privilegues belonging to root which isn't a good idea in terms of security. Logging is done to a logfile though a service should better log to the system journal.

Changes in this pull request:

Todo