diff options
author | Christian Hesse <mail@eworm.de> | 2018-07-04 13:59:24 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-07-04 16:19:34 +0200 |
commit | a834db5dc933a4b48c8323ae3e490448a86b448f (patch) | |
tree | 7fb8f9a7ac526633999ee47adb6f533cec3d7e5a /systemd/pacserve.service | |
parent | ad79ff8b22318c22eb25a157d5e2a210afa77de6 (diff) | |
download | pacredir-a834db5dc933a4b48c8323ae3e490448a86b448f.tar.gz pacredir-a834db5dc933a4b48c8323ae3e490448a86b448f.tar.zst |
use private bind mounts for pacserve, remove pacdbservesystemd-v233
We want just one service to serve database files and package archives.
Private bind mounts make both available to pacserve. This alse removes
some complexity in pacredir.
Diffstat (limited to 'systemd/pacserve.service')
-rw-r--r-- | systemd/pacserve.service | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/systemd/pacserve.service b/systemd/pacserve.service index 1e414db..e3e2401 100644 --- a/systemd/pacserve.service +++ b/systemd/pacserve.service @@ -1,9 +1,10 @@ [Unit] -Description=Darkhttpd to serve pacman cache -After=network.target +Description=Serve pacman database files and package archives +After=systemd-tmpfiles-setup.service network.target [Service] -ExecStart=/usr/bin/pacserve /var/cache/pacman/pkg/ --ipv6 --port 7078 --no-listing +ExecStart=/usr/bin/pacserve /run/pacserve/ --ipv6 --port 7078 --no-listing +BindReadOnlyPaths=/var/cache/pacman/pkg:/run/pacserve/pkg /var/lib/pacman/sync:/run/pacserve/db DynamicUser=on ProtectSystem=full ProtectHome=on |