systemd-logind.service.in revision c2fc2c2560f0ca0fab383753c065e45d76f465e5
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering# This file is part of systemd.
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering#
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering# (at your option) any later version.
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering[Unit]
91f9dcaf9270fe465525638cc08bd94590273349Lennart PoetteringDescription=Login Service
3f612b9123208577736957786633ead53ae41b66Lennart PoetteringDocumentation=man:systemd-logind.service(8) man:logind.conf(5)
085b90af43fefd9ed195902c4b55f1da3c568554Lennart PoetteringDocumentation=http://www.freedesktop.org/wiki/Software/systemd/logind
49dbfa7b2b0bf3906704dac1eaeb4eba91056a19Lennart PoetteringDocumentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringWants=user.slice
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAfter=nss-user-lookup.target user.slice
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek# Ask for the dbus socket. If running over kdbus, the socket will
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek# not be actually used.
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-SzmekWants=dbus.socket
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-SzmekAfter=dbus.socket
8f9c6fe5ff1d59001aecbf3fbf9ca0ed7ff28ba7Zbigniew Jędrzejewski-Szmek
91f9dcaf9270fe465525638cc08bd94590273349Lennart Poettering[Service]
91f9dcaf9270fe465525638cc08bd94590273349Lennart PoetteringExecStart=@rootlibexecdir@/systemd-logind
454591be36880b0300b0448576c483a39d9cc611Lennart PoetteringRestart=always
47ec118473c864b6ae550fd7ee56d6f4982e5363Lennart PoetteringRestartSec=0
91f9dcaf9270fe465525638cc08bd94590273349Lennart PoetteringBusName=org.freedesktop.login1
374738d55b2bc4ab07c22f9a0be95a76de1c9478Lukasz SkalskiCapabilityBoundingSet=CAP_SYS_ADMIN CAP_MAC_ADMIN CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
c2fc2c2560f0ca0fab383753c065e45d76f465e5Lennart PoetteringWatchdogSec=3min
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering# Increase the default a bit in order to allow many simultaneous
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart Poettering# logins since we keep one fd open per session.
f84aea434f2b014716ce9067f0af4db24a91a7c4Lennart PoetteringLimitNOFILE=16384