Answer the question
In order to leave comments, you need to log in
Where are the logs written?
Good time.
I always ran my python scripts through nohup, they often crashed, here on the toaster it was advised to run scripts as a system process using systemd.
I configured the work using the article
https://jeckill.ru/zapusk-python-skripta-kak-servis/
All scripts work.
Question: where are the logs written? Or where where to specify that they were written somewhere?
Answer the question
In order to leave comments, you need to log in
here on the toaster it was advised to run scripts as a system process using systemd.Correctly.
where are the logs written?By default in journald, but you can change it.
journalctl -u юнит
/var/log/journal in binary form. For reading journalctl is used. All output from stdout and stderr is written to the logs.
If you want direct text, you can specify the StandardOutput directive , but the file:path parameter only works from the 236th version. You can write syslog and resolve the logging for them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question