1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-18 10:04:04 +03:00

units: make systemd-userdbd.{socket,service} installable

It's lightweight and generally useful, so it should be enabled by default. But
users might want to disable it for whatever reason, and things should be fine
without it, so let's make it installable so it can be disabled if wanted.

Fixes #15175.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-13 18:40:54 +01:00
parent 5ef9eda17f
commit ead7af3093
4 changed files with 8 additions and 2 deletions

View File

@ -21,6 +21,7 @@ enable systemd-networkd.service
enable systemd-resolved.service enable systemd-resolved.service
enable systemd-repart.service enable systemd-repart.service
enable systemd-homed.service enable systemd-homed.service
enable systemd-userdbd.socket
disable console-getty.service disable console-getty.service
disable debug-shell.service disable debug-shell.service

View File

@ -139,8 +139,7 @@ units = [
'sysinit.target.wants/'], 'sysinit.target.wants/'],
['systemd-udevd-kernel.socket', '', ['systemd-udevd-kernel.socket', '',
'sockets.target.wants/'], 'sockets.target.wants/'],
['systemd-userdbd.socket', 'ENABLE_USERDB', ['systemd-userdbd.socket', 'ENABLE_USERDB'],
'sockets.target.wants/'],
['time-set.target', ''], ['time-set.target', ''],
['time-sync.target', ''], ['time-sync.target', ''],
['timers.target', ''], ['timers.target', ''],

View File

@ -39,3 +39,6 @@ SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service SystemCallFilter=@system-service
Type=notify Type=notify
@SERVICE_WATCHDOG@ @SERVICE_WATCHDOG@
[Install]
Also=systemd-userdbd.socket

View File

@ -17,3 +17,6 @@ Before=sockets.target
ListenStream=/run/systemd/userdb/io.systemd.Multiplexer ListenStream=/run/systemd/userdb/io.systemd.Multiplexer
Symlinks=/run/systemd/userdb/io.systemd.NameServiceSwitch Symlinks=/run/systemd/userdb/io.systemd.NameServiceSwitch
SocketMode=0666 SocketMode=0666
[Install]
WantedBy=sockets.target