From d64877e1e36a0824645d6437aa6073de42dbc2d1 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Tue, 20 Nov 2018 17:23:42 +0100 Subject: [PATCH] systemd service files --- enforcerd.env | 2 ++ enforcerd.service | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 enforcerd.env create mode 100644 enforcerd.service diff --git a/enforcerd.env b/enforcerd.env new file mode 100644 index 0000000..c3b41c8 --- /dev/null +++ b/enforcerd.env @@ -0,0 +1,2 @@ +IPPLAN_XZ_URL=https://username:password@url/ipplan.db.xz +STATIC_URL=https://username:password@url/static.yaml diff --git a/enforcerd.service b/enforcerd.service new file mode 100644 index 0000000..ff52221 --- /dev/null +++ b/enforcerd.service @@ -0,0 +1,17 @@ +[Unit] +Description=IPplan DNS enforcer +After=network.target +Documentation=https://github.com/dhtech/dnsenforcer/ + +[Service] +Type=simple +EnvironmentFile=/etc/dnsenforcer/enforcerd.env +ExecStart=/usr/local/bin/enforcerd \ + -cert /var/lib/puppet/ssl/certs/ns0.net.dreamhack.se.pem \ + -key /var/lib/puppet/ssl/private_keys/ns0.net.dreamhack.se.pem \ + -zones-file /etc/dnsenforcer/zones.yaml +Restart=always + +[Install] +WantedBy=multi-user.target +