]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-logind.service.in
Merge pull request #6855 from keszybz/more-docs
[thirdparty/systemd.git] / units / systemd-logind.service.in
CommitLineData
91f9dcaf
LP
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
91f9dcaf
LP
6# (at your option) any later version.
7
91f9dcaf
LP
8[Unit]
9Description=Login Service
3f612b91 10Documentation=man:systemd-logind.service(8) man:logind.conf(5)
16a5d412
DR
11Documentation=https://www.freedesktop.org/wiki/Software/systemd/logind
12Documentation=https://www.freedesktop.org/wiki/Software/systemd/multiseat
1ee306e1
LP
13Wants=user.slice
14After=nss-user-lookup.target user.slice
91f9dcaf 15
a132bef0 16# Ask for the dbus socket.
8f9c6fe5
ZJS
17Wants=dbus.socket
18After=dbus.socket
19
91f9dcaf
LP
20[Service]
21ExecStart=@rootlibexecdir@/systemd-logind
454591be 22Restart=always
47ec1184 23RestartSec=0
91f9dcaf 24BusName=org.freedesktop.login1
c2fc2c25 25WatchdogSec=3min
0c28d51a 26CapabilityBoundingSet=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
40652ca4 27MemoryDenyWriteExecute=yes
0c28d51a 28RestrictRealtime=yes
3c19d0b4 29RestrictNamespaces=yes
0c28d51a 30RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
6489ccfe 31SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
7f396e5f 32SystemCallArchitectures=native
bff8f254 33LockPersonality=yes
aed24c4c 34FileDescriptorStoreMax=512
f84aea43
LP
35
36# Increase the default a bit in order to allow many simultaneous
37# logins since we keep one fd open per session.
38LimitNOFILE=16384