aboutsummaryrefslogtreecommitdiffstats
path: root/queue_runner.service
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-02-01 20:32:11 +0100
committerDennis Eriksen <d@ennis.no>2023-02-01 20:32:11 +0100
commit8d186d39483beff64a1c11f80c6ca5e56dd7bbc5 (patch)
tree2c5a64ace4bd8eabd4d65014c5313bd7edd76191 /queue_runner.service
parentrun queue in batches (diff)
downloadenergyscripts-8d186d39483beff64a1c11f80c6ca5e56dd7bbc5.tar.gz
moving and renaming/breaking everything
Diffstat (limited to 'queue_runner.service')
-rw-r--r--queue_runner.service17
1 files changed, 17 insertions, 0 deletions
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