diff options
author | Adrian Perez de Castro | 2022-08-25 15:34:25 +0300 |
---|---|---|
committer | Adrian Perez de Castro | 2022-08-25 15:34:25 +0300 |
commit | bd99918b1e63cf5c1d1d275fa3690e27295154d1 (patch) | |
tree | 0de0127e190b1c954f160b94b11b9928056b55fb | |
parent | d2ef53ac46d586b68dea29cb4d9ea691919d34ff (diff) | |
download | aur-bd99918b1e63cf5c1d1d275fa3690e27295154d1.tar.gz |
Fix and tighten systemd service unit
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | dqcache@.service | 17 |
3 files changed, 17 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = dq pkgdesc = Small recursive DNS server and tools with DNSCurve support pkgver = 20220822 - pkgrel = 4 + pkgrel = 6 url = https://mojzis.com/software/dq/ install = dq.install arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Adrian Perez <aperez@igalia.com> pkgname=dq pkgver=20220822 -pkgrel=4 +pkgrel=6 pkgdesc='Small recursive DNS server and tools with DNSCurve support' url=https://mojzis.com/software/dq/ arch=(x86_64 i686) @@ -35,6 +35,8 @@ package () { install -m 644 -D LICENCE.md \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE.md" + install -m 755 -d "${srcdir}/etc/dqcache/default/dump" + install -m 644 -D "${srcdir}/default.conf" \ "${pkgdir}/etc/dqcache/default.conf" install -m 644 -D "${srcdir}/root-servers" \ diff --git a/dqcache@.service b/dqcache@.service index f1292f61b304..8928c34c2578 100644 --- a/dqcache@.service +++ b/dqcache@.service @@ -6,12 +6,21 @@ After=network.target [Service] Type=simple Restart=always -PrivateTmp=true +StandardError=journal +StandardOutput=journal PrivateDevices=true -ProtectSystem=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 +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] |