summaryrefslogtreecommitdiff
path: root/roles/flatbot/files/flatbot.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/flatbot/files/flatbot.service')
-rw-r--r--roles/flatbot/files/flatbot.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/flatbot/files/flatbot.service b/roles/flatbot/files/flatbot.service
new file mode 100644
index 0000000..7a66500
--- /dev/null
+++ b/roles/flatbot/files/flatbot.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Run flatbot once
+After=network.target
+
+[Service]
+Type=oneshot
+EnvironmentFile=/etc/flatbot/token
+EnvironmentFile=/etc/flatbot/config
+EnvironmentFile=/etc/flatbot/urls
+ExecStart=/usr/bin/flatbot -state ${FLATBOT_STATE} -once ${GREENWICH} ${CLERKENWELL} ${HAMPSTEAD} ${EAST_FINCHLEY} ${HIGHGATE}
+
+[Install]
+WantedBy=default.target