fix dependencies in systemd units (#805338)

This commit is contained in:
Petr Lautrbach 2012-03-23 08:48:03 +01:00
parent 33e0acc5ef
commit 52f99b131a
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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