Add systemd service file
authorRalf Ertzinger <ralf@skytale.net>
Thu, 27 Feb 2014 15:17:05 +0000 (16:17 +0100)
committerRalf Ertzinger <ralf@skytale.net>
Thu, 27 Feb 2014 15:17:05 +0000 (16:17 +0100)
Makefile
etc/systemd/system/time-sliderd.service [new file with mode: 0644]

index 3b95458..b0f8064 100644 (file)
--- 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 (file)
index 0000000..fa307ab
--- /dev/null
@@ -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