Skip to content

Commit d64877e

Browse files
committed
systemd service files
1 parent 5530fb1 commit d64877e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

enforcerd.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
IPPLAN_XZ_URL=https://username:password@url/ipplan.db.xz
2+
STATIC_URL=https://username:password@url/static.yaml

enforcerd.service

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[Unit]
2+
Description=IPplan DNS enforcer
3+
After=network.target
4+
Documentation=https://github.com/dhtech/dnsenforcer/
5+
6+
[Service]
7+
Type=simple
8+
EnvironmentFile=/etc/dnsenforcer/enforcerd.env
9+
ExecStart=/usr/local/bin/enforcerd \
10+
-cert /var/lib/puppet/ssl/certs/ns0.net.dreamhack.se.pem \
11+
-key /var/lib/puppet/ssl/private_keys/ns0.net.dreamhack.se.pem \
12+
-zones-file /etc/dnsenforcer/zones.yaml
13+
Restart=always
14+
15+
[Install]
16+
WantedBy=multi-user.target
17+

0 commit comments

Comments
 (0)