summaryrefslogtreecommitdiff
path: root/units/lorry-controller-readconf.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/lorry-controller-readconf.service')
-rw-r--r--units/lorry-controller-readconf.service8
1 files changed, 8 insertions, 0 deletions
diff --git a/units/lorry-controller-readconf.service b/units/lorry-controller-readconf.service
new file mode 100644
index 0000000..1f73b46
--- /dev/null
+++ b/units/lorry-controller-readconf.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Lorry Controller read config at startup
+After=lighttpd-lorry-controller-webapp.service
+
+[Service]
+ExecStart=/usr/bin/curl -o /dev/null -X POST --data "" http://localhost:12765/1.0/read-configuration
+User=lorry
+Group=lorry