I wrote a simple python3 skript and want to make a service from it. Here are the two files

while True:

Systemd Service:

Description=True Service

ExecStart=python3 /root/print_true.py


The service is starting but i cant see the output anywhere. Not in journalctl -u true-service.service, not in systemctl status true-service and not in syslog. I want to have it only in journal but how can i accomplish that? I cant seem to find a working answer.


Use systemd-cat to accomplish that, pipe the output to it.

Test it:

echo "hello world" | systemd-cat -ttrue-service

List the output:

journalctl -t true-service

Change your service unit:

ExecStart=/usr/bin/python3 /root/print_true.py | /usr/bin/systemd-cat -ttrue-service

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.