From 8d186d39483beff64a1c11f80c6ca5e56dd7bbc5 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 1 Feb 2023 20:32:11 +0100 Subject: moving and renaming/breaking everything --- queue_runner.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 queue_runner.service (limited to 'queue_runner.service') diff --git a/queue_runner.service b/queue_runner.service new file mode 100644 index 0000000..6b78068 --- /dev/null +++ b/queue_runner.service @@ -0,0 +1,17 @@ +[Unit] +Description=Simple service to start queue-runner +StartLimitIntervalSec=100 +StartLimitBurst=5 + +[Service] +Type=simple +EnvironmentFile=%h/energyscripts/.env +WorkingDirectory=%h/energyscripts +ExecStart=%h/energyscripts/venv/bin/python3 -u scripts/queue_runner.py +Restart=on-failure +TimeoutStopSec=70 +RestartSec=30 +SyslogIdentifier=%N + +[Install] +WantedBy=default.target -- cgit v1.2.3