diff options
author | Papoteur <papoteur@mageia.org> | 2018-10-16 21:45:28 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-10-16 21:48:35 +0200 |
commit | 3b6eef57db6e8dec1b0cc64ebe5de81039051bb5 (patch) | |
tree | d15687bfb551702bce4265723020c6798568baca | |
parent | d656d0088fde1ddf50afe3d9d154d5f66caa04c8 (diff) | |
download | isodumper-3b6eef57db6e8dec1b0cc64ebe5de81039051bb5.tar isodumper-3b6eef57db6e8dec1b0cc64ebe5de81039051bb5.tar.gz isodumper-3b6eef57db6e8dec1b0cc64ebe5de81039051bb5.tar.bz2 isodumper-3b6eef57db6e8dec1b0cc64ebe5de81039051bb5.tar.xz isodumper-3b6eef57db6e8dec1b0cc64ebe5de81039051bb5.zip |
Manage magiback start through DBus and systemd
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | backend/magiback.service | 13 | ||||
-rw-r--r-- | backend/org.mageia.Magiback.service | 1 |
3 files changed, 19 insertions, 0 deletions
@@ -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 |