diff options
-rw-r--r-- | avahi/pacdbserve.service | 15 | ||||
-rw-r--r-- | systemd/pacdbserve.service | 9 |
2 files changed, 24 insertions, 0 deletions
diff --git a/avahi/pacdbserve.service b/avahi/pacdbserve.service new file mode 100644 index 0000000..38c8211 --- /dev/null +++ b/avahi/pacdbserve.service @@ -0,0 +1,15 @@ +<?xml version="1.0" standalone='no'?><!--*-nxml-*--> +<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> + +<!-- See avahi.service(5) for more information about this configuration file --> + +<service-group> + + <name replace-wildcards="yes">%h</name> + + <service> + <type>_pacdbserve._tcp</type> + <port>7079</port> + </service> + +</service-group> diff --git a/systemd/pacdbserve.service b/systemd/pacdbserve.service new file mode 100644 index 0000000..c599af0 --- /dev/null +++ b/systemd/pacdbserve.service @@ -0,0 +1,9 @@ +[Unit] +Description=Darkhttpd to serve pacman db files +After=network.target + +[Service] +ExecStart=/usr/bin/darkhttpd /var/lib/pacman/sync/ --port 7079 + +[Install] +WantedBy=multi-user.target |