I wrote a simple python3 skript and want to make a service from it. Here are the two files
#!/bin/python3
while True:
print('True')
Systemd Service:
[Unit]
Description=True Service
[Service]
Type=simple
ExecStart=python3 /root/print_true.py
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target
The service is starting but i cant see the output anywhere. Not in
-u true-service.service
, not in status true-service
and not in
. I want to have it only in journal but how can i accomplish that? I cant seem to find a working answer.
Asked by Nico
(123 rep)
Jun 28, 2020, 08:57 AM
Last activity: Aug 6, 2025, 06:05 AM
Last activity: Aug 6, 2025, 06:05 AM