]> git.ipfire.org Git - pakfire.git/commitdiff
Add systemd service file for pakfire-daemon.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 23 Jun 2013 14:42:19 +0000 (16:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Jun 2013 16:10:13 +0000 (18:10 +0200)
Makefile
systemd/pakfire-daemon.service [new file with mode: 0644]

index c873463130d4d63884a985456774a49bae48ba15..00ea0fa0cfb6a06158f4301af5806f7ff53fef49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,10 @@ install: build
                cp -rvf examples/$${file} $(DESTDIR)/etc/pakfire/; \
        done
 
+       # Install systemd file.
+       -mkdir -pv $(DESTDIR)/usr/lib/systemd/system
+       cp -vf systemd/*.systemd $(DESTDIR)/usr/lib/systemd/system
+
 .PHONY: check
 check: all
        PYTHONPATH=python/src/ pylint -E python/pakfire
diff --git a/systemd/pakfire-daemon.service b/systemd/pakfire-daemon.service
new file mode 100644 (file)
index 0000000..f4c8f2b
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=Pakfire Daemon
+After=network.target
+Requires=network.target
+
+[Service]
+KillMode=process
+SendSIGKILL=false
+TimeoutStopSec=0
+
+ExecStart=/usr/bin/pakfire-daemon
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target