Skip to content

Commit

Permalink
accountsservice: Install systemd service unit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pmenzel committed Dec 21, 2017
1 parent f79e37b commit 182aff7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions accountsservice.be0
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 182aff7

Please sign in to comment.