From: Stefan Schantl Date: Sun, 23 Jun 2013 14:42:19 +0000 (+0200) Subject: Add systemd service file for pakfire-daemon. X-Git-Tag: 0.9.26~10^2~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74ffafed27a27f12511274f2e6cf2c5b26ec8d5c;p=pakfire.git Add systemd service file for pakfire-daemon. --- diff --git a/Makefile b/Makefile index c87346313..00ea0fa0c 100644 --- 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 index 000000000..f4c8f2bc3 --- /dev/null +++ b/systemd/pakfire-daemon.service @@ -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