summaryrefslogtreecommitdiff
path: root/roles/greenbone/server/templates/systemd.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/greenbone/server/templates/systemd.service.j2')
-rw-r--r--roles/greenbone/server/templates/systemd.service.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/greenbone/server/templates/systemd.service.j2 b/roles/greenbone/server/templates/systemd.service.j2
new file mode 100644
index 00000000..42a92760
--- /dev/null
+++ b/roles/greenbone/server/templates/systemd.service.j2
@@ -0,0 +1,8 @@
+[Unit]
+Description=greenbone feed update for {{ greenbone_server_hostname }}
+After=docker.service
+Requires=docker.service
+
+[Service]
+Type=oneshot
+ExecStart="/usr/local/bin/update-greenbone.{{ greenbone_server_hostname }}"