Systemd compatibility according to Mathieu Bridon <bochecha@fedoraproject.org>

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)
This commit is contained in:
Jan F 2011-06-28 12:37:13 +02:00
parent 273d637227
commit 2953c82001
1 changed files with 12 additions and 0 deletions

12
sshd-keygen.service Normal file
View File

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