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: