It is hard to tell what is happening from the information here. You have told the service to restart on errors.
Looking at your previous posts, it looks like you wanted information about writing the script and if you should run forever. If your program is trying to run for ever, then it is probably exiting on an error and being restarted.
What does the following print out?
Code:
Restart=always
What does the following print out?
Code:
sudo systemctl status ferment.service
Statistics: Posted by AndyD — Fri Aug 30, 2024 1:37 am