From 7cd849a636c4c88249742d3dc0636329b2a6ffac Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Thu, 27 Feb 2014 16:17:05 +0100 Subject: [PATCH] Add systemd service file --- Makefile | 3 +++ etc/systemd/system/time-sliderd.service | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 etc/systemd/system/time-sliderd.service diff --git a/Makefile b/Makefile index 3b95458..b0f8064 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,8 @@ install: $(INSTALL_DATA) $(DESTDIR)/etc/dbus-1/system.d etc/dbus-1/system.d/time-slider.conf $(mkinstalldirs) $(DESTDIR)/etc/xdg/autostart $(INSTALL_DATA) $(DESTDIR)/etc/xdg/autostart etc/xdg/autostart/*.desktop + $(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system + $(INSTALL_DATA) $(DESTDIR)/usr/lib/systemd/system etc/systemd/system/*.service $(mkinstalldirs) $(DESTDIR)/lib/svc/method $(INSTALL_SCRIPT) $(DESTDIR)/lib/svc/method lib/svc/method/time-slider $(INSTALL_SCRIPT) $(DESTDIR)/lib/svc/method lib/svc/method/time-slider-plugin @@ -141,6 +143,7 @@ uninstall: done $(RM) $(DESTDIR)/etc/dbus-1/system.d/time-slider.conf $(RM) $(DESTDIR)/etc/xdg/autostart/time-slider-notify.desktop + $(RM) $(DESTDIR)/usr/lib/systemd/system/time-sliderd.service $(RM) $(DESTDIR)/lib/svc/method/time-slider $(RM) $(DESTDIR)/lib/svc/method/time-slider-plugin $(RM) $(DESTDIR)/lib/svc/method/time-slider-rsync diff --git a/etc/systemd/system/time-sliderd.service b/etc/systemd/system/time-sliderd.service new file mode 100644 index 0000000..fa307ab --- /dev/null +++ b/etc/systemd/system/time-sliderd.service @@ -0,0 +1,9 @@ +[Unit] +Description=Time slider daemon +After=zfs.target + +[Service] +ExecStart=/usr/bin/python /usr/lib/time-sliderd --foreground + +[Install] +WantedBy=multi-user.target -- 1.8.3.1