diff options
author | Christian Hesse <mail@eworm.de> | 2018-07-05 14:44:30 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-07-05 14:44:30 +0200 |
commit | eeb439db30c82c429a7a02bb0287713556ef7785 (patch) | |
tree | 1fa776df51ae5b41f2dcd65472458fa806f4d12e /systemd | |
parent | ad79ff8b22318c22eb25a157d5e2a210afa77de6 (diff) | |
parent | b8aeafb0377321d8443fc36a7a1ae660f407cfd2 (diff) | |
download | pacredir-eeb439db30c82c429a7a02bb0287713556ef7785.tar.gz pacredir-eeb439db30c82c429a7a02bb0287713556ef7785.tar.zst |
Merge branch 'bind-mount'
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/pacdbserve.service | 14 | ||||
-rw-r--r-- | systemd/pacredir.service | 1 | ||||
-rw-r--r-- | systemd/pacserve.service | 7 | ||||
-rw-r--r-- | systemd/tmpfiles.conf | 2 |
4 files changed, 6 insertions, 18 deletions
diff --git a/systemd/pacdbserve.service b/systemd/pacdbserve.service deleted file mode 100644 index a94238d..0000000 --- a/systemd/pacdbserve.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Darkhttpd to serve pacman db files -After=network.target - -[Service] -ExecStart=/usr/bin/pacdbserve /var/lib/pacman/sync/ --ipv6 --port 7079 --no-listing -DynamicUser=on -ProtectSystem=full -ProtectHome=on -PrivateDevices=on -NoNewPrivileges=on - -[Install] -WantedBy=multi-user.target diff --git a/systemd/pacredir.service b/systemd/pacredir.service index 2e890f7..561b4cd 100644 --- a/systemd/pacredir.service +++ b/systemd/pacredir.service @@ -16,4 +16,3 @@ NoNewPrivileges=on [Install] WantedBy=multi-user.target Also=pacserve.service -Also=pacdbserve.service 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 diff --git a/systemd/tmpfiles.conf b/systemd/tmpfiles.conf new file mode 100644 index 0000000..f1da220 --- /dev/null +++ b/systemd/tmpfiles.conf @@ -0,0 +1,2 @@ +d /var/cache/pacman/pkg - - - - +d /var/lib/pacman/sync - - - - |