summaryrefslogtreecommitdiffstats
path: root/systemd/pacserve.service
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-07-05 14:44:30 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-07-05 14:44:30 +0200
commiteeb439db30c82c429a7a02bb0287713556ef7785 (patch)
tree1fa776df51ae5b41f2dcd65472458fa806f4d12e /systemd/pacserve.service
parentad79ff8b22318c22eb25a157d5e2a210afa77de6 (diff)
parentb8aeafb0377321d8443fc36a7a1ae660f407cfd2 (diff)
downloadpacredir-eeb439db30c82c429a7a02bb0287713556ef7785.tar.gz
pacredir-eeb439db30c82c429a7a02bb0287713556ef7785.tar.zst
Merge branch 'bind-mount'
Diffstat (limited to 'systemd/pacserve.service')
-rw-r--r--systemd/pacserve.service7
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