summarylogtreecommitdiffstats
path: root/dqcache@.service
blob: 8928c34c2578fa5d06d075da0b267c6262bb5d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[Unit]
Description=dqcache caching recursive DNS server
Documentation=https://mojzis.com/software/dq
After=network.target

[Service]
Type=simple
Restart=always
StandardError=journal
StandardOutput=journal
PrivateDevices=true
PrivateTmp=true
ProtectClock=true
ProtectHome=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
ReadWritePaths=/etc/dqcache/%i/dump
WorkingDirectory=/etc/dqcache/%i
EnvironmentFile=/etc/dqcache/%i.conf
EnvironmentFile=-/etc/dqcache/%i/config
ExecStartPre=/usr/bin/mkdir -p /etc/dqcache/%i/dump
ExecStart=/usr/bin/dqcache-start /etc/dqcache/%i dqcache /usr/bin/dqcache

[Install]
WantedBy=multi-user.target