]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pakfire/patches/0016-Add-systemd-service-file-for-pakfire-daemon.patch
python: Update to 2.7.5.
[people/ms/ipfire-3.x.git] / pakfire / patches / 0016-Add-systemd-service-file-for-pakfire-daemon.patch
CommitLineData
eac44f69
MT
1From 74ffafed27a27f12511274f2e6cf2c5b26ec8d5c Mon Sep 17 00:00:00 2001
2From: Stefan Schantl <stefan.schantl@ipfire.org>
3Date: Sun, 23 Jun 2013 16:42:19 +0200
4Subject: [PATCH 16/19] Add systemd service file for pakfire-daemon.
5
6---
7 Makefile | 4 ++++
8 systemd/pakfire-daemon.service | 15 +++++++++++++++
9 2 files changed, 19 insertions(+)
10 create mode 100644 systemd/pakfire-daemon.service
11
12diff --git a/Makefile b/Makefile
13index c873463..00ea0fa 100644
14--- a/Makefile
15+++ b/Makefile
16@@ -38,6 +38,10 @@ install: build
17 cp -rvf examples/$${file} $(DESTDIR)/etc/pakfire/; \
18 done
19
20+ # Install systemd file.
21+ -mkdir -pv $(DESTDIR)/usr/lib/systemd/system
22+ cp -vf systemd/*.systemd $(DESTDIR)/usr/lib/systemd/system
23+
24 .PHONY: check
25 check: all
26 PYTHONPATH=python/src/ pylint -E python/pakfire
27diff --git a/systemd/pakfire-daemon.service b/systemd/pakfire-daemon.service
28new file mode 100644
29index 0000000..f4c8f2b
30--- /dev/null
31+++ b/systemd/pakfire-daemon.service
32@@ -0,0 +1,15 @@
33+[Unit]
34+Description=Pakfire Daemon
35+After=network.target
36+Requires=network.target
37+
38+[Service]
39+KillMode=process
40+SendSIGKILL=false
41+TimeoutStopSec=0
42+
43+ExecStart=/usr/bin/pakfire-daemon
44+Restart=on-failure
45+
46+[Install]
47+WantedBy=multi-user.target
48--
491.8.1.4
50