I've made a program to log certain system stats, and I would like to run that program as a Linux service so I can easily manage it (start, stop, etc). I've spent hours researching and trying things, but I can't seem to get my systemd service file configured correctly.
So far I have this in my service file: (clopper is my username, resourciter is my python program name)
[Unit] Description=Simplified Resourciter logger service After=syslog.target [Service] Type=simple User=clopper Group=clopper WorkingDirectory=/home/clopper/resourciter/ ExecStart=/usr/bin/python3 /home/clopper/resourciter/runMonitor.py StandardOutput=syslog StandardError=syslog [Install] WantedBy=multi-user.target
But I keep having this error when I try to start the service:
pam_unix(sudo:auth): auth could not identify password for [clopper]
I can't seem to find a definitive reference about the ins and outs of configuring a systemd service file.