summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-03-29 11:16:53 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-03-29 11:28:29 +0200
commit324ebdf91bbd5dd642cc7db1ddbb63c29ed3f3a5 (patch)
tree8bc9d9bb6b1162d70f03a0ebb4b5b1984de461c6 /systemd
parent2055076187f2635039ba5acb18430f1f54885142 (diff)
downloadpacredir-324ebdf91bbd5dd642cc7db1ddbb63c29ed3f3a5.tar.gz
pacredir-324ebdf91bbd5dd642cc7db1ddbb63c29ed3f3a5.tar.zst
pacserve: use empty file for index
This makes monitoring happy... 😊
Diffstat (limited to 'systemd')
-rw-r--r--systemd/pacserve.service2
-rw-r--r--systemd/tmpfiles.conf2
2 files changed, 3 insertions, 1 deletions
diff --git a/systemd/pacserve.service b/systemd/pacserve.service
index f6fb814..9c0882a 100644
--- a/systemd/pacserve.service
+++ b/systemd/pacserve.service
@@ -10,7 +10,7 @@ Description=Serve pacman database files and package archives
After=systemd-tmpfiles-setup.service network.target
[Service]
-ExecStart=/usr/bin/pacserve /run/pacserve/ --ipv6 --port 7078 --no-listing
+ExecStart=/usr/bin/pacserve /run/pacserve/ --ipv6 --port 7078 --no-listing --index empty
BindReadOnlyPaths=/var/cache/pacman/pkg:/run/pacserve/pkg /var/lib/pacman/sync:/run/pacserve/db
DynamicUser=on
ProtectSystem=full
diff --git a/systemd/tmpfiles.conf b/systemd/tmpfiles.conf
index f1da220..2e2be67 100644
--- a/systemd/tmpfiles.conf
+++ b/systemd/tmpfiles.conf
@@ -1,2 +1,4 @@
d /var/cache/pacman/pkg - - - -
d /var/lib/pacman/sync - - - -
+d /run/pacserve - - - -
+f /run/pacserve/empty - - - -