Das gleiche.
Code: Alles auswählen
* pir.service
Loaded: loaded (/home/pi/.config/systemd/user/pir.service; enabled; >
Active: inactive (dead)
Code: Alles auswählen
* pir.service
Loaded: loaded (/home/pi/.config/systemd/user/pir.service; enabled; >
Active: inactive (dead)
Code: Alles auswählen
$ systemctl --user status pir
* pir.service
Loaded: loaded (/home/pi/.config/systemd/user/pir.service; enabled; >
Active: inactive (dead)
lines 1-3/3 (END)
Code: Alles auswählen
systemctl --user start pir
Code: Alles auswählen
[Unit]
PartOf=graphical-session.target
After=graphical-session.target
Wants=X11.target
[Install]
WantedBy=graphical-session.target
[Service]
ExecStart=/home/pi/pir.py
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
StandardOutput=journal
StandardError=journal
ExecStartPre=/bin/sleep 10
Code: Alles auswählen
journalctl --boot -u pir.service
Code: Alles auswählen
-- No entries --