I have a service that should restart only once when something go wrong. Here is my service:
[Unit]
Description=Do job on boot
AllowIsolate=yes
StartLimitBurst=1 # or 2
StartLimitIntervalSec=3
[Service]
User=root
Type=idle
ExecStart=/usr/bin/python3 /var/www/flask/initJobs.py
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target
But this on failure keep restarting.
systemd version 241.
Tried to add StartLimitAction=none
but did not change nothing.