From 324ebdf91bbd5dd642cc7db1ddbb63c29ed3f3a5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 29 Mar 2022 11:16:53 +0200 Subject: pacserve: use empty file for index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes monitoring happy... 😊 --- systemd/pacserve.service | 2 +- systemd/tmpfiles.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'systemd') 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 - - - - -- cgit v1.2.3-70-g09d2