aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--backend/magiback.service13
-rw-r--r--backend/org.mageia.Magiback.service1
3 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6c0f3dd..e991134 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,7 @@ SYSCONFDIR=/etc
DIRS = polkit
POFILES = po
DBUSDIR=$(SYSCONFDIR)/dbus-1
+SYSTEMDCONFDIR=$(LIBDIR)/systemd/system/
PACKAGE = isodumper
VERSION = 1.02
@@ -71,6 +72,10 @@ install:
mkdir -p $(DESTDIR)${DATADIR}/dbus-1/system-services
install -m 644 backend/org.mageia.Magiback.service $(DESTDIR)${DATADIR}/dbus-1/system-services
+ # for systemd service on /usr/lib/systemd/system
+ mkdir -p $(DESTDIR)${SYSTEMDCONFDIR}
+ install -m 644 backend/magiback.service $(DESTDIR)${SYSTEMDCONFDIR}
+
# for policy file isodumper on /usr/share/polkit-1/actions/
# to have authentication with polkit (use for mageia policy)
mkdir -p $(DESTDIR)$(POLKITPOLICYDIR)
diff --git a/backend/magiback.service b/backend/magiback.service
new file mode 100644
index 0000000..48f283b
--- /dev/null
+++ b/backend/magiback.service
@@ -0,0 +1,13 @@
+# This file is part of magiback.
+#
+
+[Unit]
+Description=Magiback backend
+
+[Service]
+Type=dbus
+BusName=org.mageia.Magiback
+ExecStart=/usr/bin/magiback
+
+[Install]
+Alias=dbus-org.mageia.Magiback.service
diff --git a/backend/org.mageia.Magiback.service b/backend/org.mageia.Magiback.service
index b495f1b..b4bfe52 100644
--- a/backend/org.mageia.Magiback.service
+++ b/backend/org.mageia.Magiback.service
@@ -2,3 +2,4 @@
Name=org.mageia.Magiback
Exec=/usr/bin/magiback
User=root
+SystemdService=magiback.service