hiveeyes / terkin-datalogger

Datalogger for MicroPython and CPython.
https://terkin.org
GNU Affero General Public License v3.0
60 stars 28 forks source link

CPython: Run Terkin as system service #91

Open amotl opened 3 years ago

amotl commented 3 years ago

Hi there,

in order to support @MKO1640 in his endeavor to run Terkin on a Raspberry Pi Zero W device [1], it would be sweet if Terkin could also install itself as a system service by providing a corresponding systemd unit file, in turn invoking terkin --damon ....

The patch https://github.com/hiveeyes/saraswati/pull/11 can be used as a blueprint for this improvement. The corresponding setup command for Terkin would then be sudo terkin setup --systemd.

With kind regards, Andreas.

[1] https://community.hiveeyes.org/t/developing-terkin-for-cpython/4088/6