units: automatically respawn the core services
This commit is contained in:
parent
e62abb6268
commit
454591be36
|
@ -11,6 +11,5 @@ Documentation=man:systemd-ask-password-console.service(8)
|
||||||
After=systemd-user-sessions.service
|
After=systemd-user-sessions.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-@SYSTEMCTL@ stop systemd-ask-password-console.path systemd-ask-password-console.service
|
ExecStartPre=-@SYSTEMCTL@ stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service
|
||||||
ExecStartPre=-@SYSTEMCTL@ stop systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service
|
|
||||||
ExecStart=@rootbindir@/systemd-tty-ask-password-agent --wall
|
ExecStart=@rootbindir@/systemd-tty-ask-password-agent --wall
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
# 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]
|
[Unit]
|
||||||
Description=Early root shell on tty9 FOR DEBUGGING ONLY
|
Description=Early root shell on tty9 FOR DEBUGGING ONLY
|
||||||
Documentation=man:sushell(8)
|
Documentation=man:sushell(8)
|
||||||
|
|
|
@ -14,6 +14,7 @@ After=systemd-journald.socket syslog.socket
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@rootlibexecdir@/systemd-journald
|
ExecStart=@rootlibexecdir@/systemd-journald
|
||||||
|
Restart=always
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID
|
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID
|
||||||
|
|
|
@ -13,6 +13,7 @@ After=nss-user-lookup.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@rootlibexecdir@/systemd-logind
|
ExecStart=@rootlibexecdir@/systemd-logind
|
||||||
|
Restart=always
|
||||||
BusName=org.freedesktop.login1
|
BusName=org.freedesktop.login1
|
||||||
CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
|
CapabilityBoundingSet=CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,5 @@ ConditionCapability=CAP_MKNOD
|
||||||
Type=notify
|
Type=notify
|
||||||
OOMScoreAdjust=-1000
|
OOMScoreAdjust=-1000
|
||||||
Sockets=systemd-udev-control.socket systemd-udev-kernel.socket
|
Sockets=systemd-udev-control.socket systemd-udev-kernel.socket
|
||||||
Restart=on-failure
|
Restart=always
|
||||||
ExecStart=@rootlibexecdir@/systemd-udevd
|
ExecStart=@rootlibexecdir@/systemd-udevd
|
||||||
|
|
Loading…
Reference in a new issue