Skip to content

Commit

Permalink
systemd service files
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd committed Nov 20, 2018
1 parent 5530fb1 commit d64877e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions enforcerd.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IPPLAN_XZ_URL=https://username:password@url/ipplan.db.xz
STATIC_URL=https://username:password@url/static.yaml
17 changes: 17 additions & 0 deletions enforcerd.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d64877e

Please sign in to comment.