From 182aff7a3021ab4b4f1ccfdf86de0e3a8d516e80 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 21 Dec 2017 14:41:11 +0100 Subject: [PATCH] accountsservice: Install systemd service unit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To enable/detect systemd libsystemd 186 is required. So, install the systemd service unit ourselves. Install it under `/lib`, as it’s the distributed file. --- accountsservice.be0 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/accountsservice.be0 b/accountsservice.be0 index bead42528..9038625da 100755 --- a/accountsservice.be0 +++ b/accountsservice.be0 @@ -67,6 +67,27 @@ mee_configure() { #} ## by default this may be 'make install DESTDIR="${D}"' +mee_install_post() { + mkdir -p ${D}/lib/systemd/system/ + cat > ${D}/lib/systemd/system/accounts-daemon.service <<-EOF + [Unit] + Description=Accounts Service + + [Service] + Type=dbus + BusName=org.freedesktop.Accounts + ExecStart=${LIBEXECDIR}/accounts-daemon + StandardOutput=syslog + + [Install] + # We pull this in by graphical.target instead of waiting for the bus + # activation, to speed things up a little: gdm uses this anyway so it is nice + # if it is already around when gdm wants to use it and doesn't have to wait for + # it. + WantedBy=graphical.target +EOF +} + ############################################################################### ## ## Additional hints: