[Unit] Description = Simple service to start mqtt-listener StartLimitIntervalSec = 100 StartLimitBurst = 5 [Service] User = energy Group = energy Type = simple EnvironmentFile = /opt/energyscripts/.env WorkingDirectory = /opt/energyscripts ExecStart = /opt/energyscripts/venv/bin/python3 -u scripts/%j.py -a %i Restart = on-failure TimeoutStopSec = 70 RestartSec = 30 SyslogIdentifier = %N NoNewPrivileges = true ProtectHome = tmpfs ProtectSystem = full PrivateDevices = true ReadWritePaths = /opt/energyscripts/queue [Install] WantedBy = default.target