We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
По мотивам #5, спасибо @crimean-celica
Исходники лежат по пути ~/tion/python-server, соответственно настройки:
~/tion/python-server
rpi ~$ sudo systemctl --force --full edit tion-server.service
файл tion-server.service создается по пути /etc/systemd/system
tion-server.service
/etc/systemd/system
[Unit] Description=Tion Server After=multi-user.target [Service] ExecStart=/usr/bin/python3 /home/pi/tion/python-server/main.py [Install] WantedBy=multi-user.target
Дальше - просто:
rpi ~$ sudo systemctl enable --now tion-server.service
rpi ~$ sudo systemctl start tion-server.service
rpi ~$ sudo systemctl restart tion-server.service
rpi ~$ sudo systemctl stop tion-server.service
rpi ~$ systemctl status tion-server.service
при активном опросе сервиса вторая команда покажет журнал работы.