Bug#764298: How to mask the service

Mathieu Parent math.parent at gmail.com
Fri Oct 24 16:14:29 BST 2014


2014-10-24 16:39 GMT+02:00 Michael Biebl <biebl at debian.org>:

Hello Michael,

> Not really. We added a condition to systemd-logind.service to not start
> the service if dbus is not installed. If it's started, it means dbus is
> installed, but it  failed for other reasons, and you should investigate
> that.

=====================
$ sudo aptitude search dbus~i
(nothing)

=====================
$ sudo systemctl status systemd-logind.service
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static)
   Active: failed (Result: start-limit) since ven. 2014-10-24 17:06:27
CEST; 58s ago
     Docs: man:systemd-logind.service(8)
           man:logind.conf(5)
           http://www.freedesktop.org/wiki/Software/systemd/logind
           http://www.freedesktop.org/wiki/Software/systemd/multiseat
  Process: 529 ExecStart=/lib/systemd/systemd-logind (code=exited,
status=1/FAILURE)
 Main PID: 529 (code=exited, status=1/FAILURE)
   Status: "Shutting down..."

oct. 24 17:06:27 testjessie systemd[1]: systemd-logind.service start
request repeated too quickly, refusing to start.
oct. 24 17:06:27 testjessie systemd[1]: Failed to start Login Service.
oct. 24 17:06:27 testjessie systemd[1]: Unit systemd-logind.service
entered failed state.

=====================
$ cat /lib/systemd/system/systemd-logind.service
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Login Service
Documentation=man:systemd-logind.service(8) man:logind.conf(5)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/logind
Documentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat
Wants=user.slice
After=nss-user-lookup.target user.slice

# Ask for the dbus socket. If running over kdbus, the socket will
# not be actually used.
Wants=dbus.socket
After=dbus.socket

[Service]
ExecStart=/lib/systemd/systemd-logind
Restart=always
RestartSec=0
BusName=org.freedesktop.login1
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_AUDIT_CONTROL CAP_CHOWN
CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER
CAP_SYS_TTY_CONFIG
WatchdogSec=1min

# Increase the default a bit in order to allow many simultaneous
# logins since we keep one fd open per session.
LimitNOFILE=16384

=====================
And side-note: #764298, is not marked as fixed.

I'm using systemd 215-5+b1.

Regards
--
Mathieu




More information about the Pkg-systemd-maintainers mailing list