forked from rpms/openssh
fix dependencies in systemd units (#805338)
This commit is contained in:
parent
33e0acc5ef
commit
52f99b131a
@ -2,12 +2,10 @@
|
|||||||
Description=SSH server keys generation.
|
Description=SSH server keys generation.
|
||||||
After=syslog.target
|
After=syslog.target
|
||||||
Before=sshd.service
|
Before=sshd.service
|
||||||
|
BindTo=sshd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EnvironmentFile=/etc/sysconfig/sshd
|
EnvironmentFile=/etc/sysconfig/sshd
|
||||||
ExecStart=/usr/sbin/sshd-keygen
|
ExecStart=/usr/sbin/sshd-keygen
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenSSH server daemon
|
Description=OpenSSH server daemon
|
||||||
After=syslog.target network.target auditd.service
|
After=syslog.target network.target auditd.service
|
||||||
|
Wants=sshd-keygen.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/sysconfig/sshd
|
EnvironmentFile=/etc/sysconfig/sshd
|
||||||
|
Loading…
Reference in New Issue
Block a user