aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/pacserve-announce.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/pacserve-announce.service.in')
-rw-r--r--systemd/pacserve-announce.service.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/systemd/pacserve-announce.service.in b/systemd/pacserve-announce.service.in
new file mode 100644
index 0000000..c6f9828
--- /dev/null
+++ b/systemd/pacserve-announce.service.in
@@ -0,0 +1,23 @@
+# (C) 2013-2025 by Christian Hesse <mail@eworm.de>
+# Markus Weippert <markus@gekmihesg.de>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Announce pacman database files and package archives
+Documentation=https://pacredir.eworm.de/
+After=avahi-daemon.service pacserve.service
+BindsTo=pacserve.service
+Requisite=avahi-daemon.service
+
+[Service]
+EnvironmentFile=/etc/pacserve.conf
+ExecStart=/usr/bin/avahi-publish -s "pacserve on %l" _pacserve-%ID%-%ARCH%._tcp ${PORT}
+DynamicUser=on
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on