[openssh] fix dependencies in systemd units (#805338)
plautrba
plautrba at fedoraproject.org
Fri Mar 23 08:21:52 UTC 2012
commit 52f99b131ac1d73c5a3cbf988b1f709cae2bb4a7
Author: Petr Lautrbach <plautrba at redhat.com>
Date: Fri Mar 23 08:48:03 2012 +0100
fix dependencies in systemd units (#805338)
sshd-keygen.service | 4 +---
sshd.service | 1 +
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/sshd-keygen.service b/sshd-keygen.service
index c4af598..4a411f0 100644
--- a/sshd-keygen.service
+++ b/sshd-keygen.service
@@ -2,12 +2,10 @@
Description=SSH server keys generation.
After=syslog.target
Before=sshd.service
+BindTo=sshd.service
[Service]
Type=oneshot
EnvironmentFile=/etc/sysconfig/sshd
ExecStart=/usr/sbin/sshd-keygen
RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
diff --git a/sshd.service b/sshd.service
index d5a7051..f32055a 100644
--- a/sshd.service
+++ b/sshd.service
@@ -1,6 +1,7 @@
[Unit]
Description=OpenSSH server daemon
After=syslog.target network.target auditd.service
+Wants=sshd-keygen.service
[Service]
EnvironmentFile=/etc/sysconfig/sshd
More information about the scm-commits
mailing list