From 2953c82001808db0056c4e014c20090c22121dc8 Mon Sep 17 00:00:00 2001 From: Jan F Date: Jun 28 2011 10:37:13 +0000 Subject: Systemd compatibility according to Mathieu Bridon Split out the host keygen into their own command, to ease future migration to systemd. Compatitbility with the init script was kept. Migrate the package to full native systemd unit files, according to the Fedora packaging guidelines. Prepate the unit files for running an ondemand server. (do not add it actually) --- diff --git a/sshd-keygen.service b/sshd-keygen.service new file mode 100644 index 0000000..bfef328 --- /dev/null +++ b/sshd-keygen.service @@ -0,0 +1,12 @@ +[Unit] +Description=SSH server keys generation. +After=syslog.target +Before=sshd.service + +[Service] +Type=oneshot +ExecStart=/usr/sbin/sshd-keygen +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target