summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/pacredir.service9
-rw-r--r--systemd/pacserve.service9
2 files changed, 18 insertions, 0 deletions
diff --git a/systemd/pacredir.service b/systemd/pacredir.service
new file mode 100644
index 0000000..fb4feba
--- /dev/null
+++ b/systemd/pacredir.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Darkhttpd to serve pacman cache
+After=avahi-daemon.service
+
+[Service]
+ExecStart=/usr/bin/pacredir
+
+[Install]
+WantedBy=multi-user.target
diff --git a/systemd/pacserve.service b/systemd/pacserve.service
new file mode 100644
index 0000000..76bdc77
--- /dev/null
+++ b/systemd/pacserve.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Darkhttpd to serve pacman cache
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/darkhttpd /var/cache/pacman/pkg/ --port 7078
+
+[Install]
+WantedBy=multi-user.target