i'm trying to have systemd execute a python3 script on boot and it fails saying some journal files were not opened due to permissions and I couldn't find any other solutions.
The script works fine if I manually start it with systemctl start LoginAlert but after enabling it to start on boot (with systemctl enable LoginAlert) it gives me the error message below.
I used a custom .service script for the execution of the script.
[Unit]
Description=Login alert system.
[Service]
Type=simple
ExecStart=/usr/bin/python3 /usr/bin/LoginAlert.py
[Install]
WantedBy=multi-user.target
● LoginAlert.service - Login alert system.
Loaded: loaded (/etc/systemd/system/LoginAlert.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2020-06-20 22:25:30 EDT; 2min 57s ago
Process: 622 ExecStart=/usr/bin/python3 /usr/bin/LoginAlert.py (code=exited, status=1/FAILURE)
Main PID: 622 (code=exited, status=1/FAILURE)
Warning: some journal files were not opened due to insufficient permissions