2013-01-23 17:28:19 +00:00
|
|
|
[Unit]
|
|
|
|
Description=OpenSSH server daemon
|
|
|
|
Before=anaconda.target
|
2017-01-09 02:09:07 +00:00
|
|
|
After=syslog.target network.target sshd-keygen.target
|
|
|
|
Wants=sshd-keygen.target
|
2015-03-23 11:36:12 +00:00
|
|
|
ConditionKernelCommandLine=|sshd
|
|
|
|
ConditionKernelCommandLine=|inst.sshd
|
2017-01-09 02:09:07 +00:00
|
|
|
ConditionKernelCommandLine=!inst.sshd=0
|
|
|
|
ConditionKernelCommandLine=!sshd=0
|
2015-03-23 11:36:12 +00:00
|
|
|
# TODO: use ConditionArchitecture in systemd v210 or later
|
|
|
|
ConditionPathIsDirectory=|/sys/hypervisor/s390
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/sysconfig/sshd
|
|
|
|
ExecStartPre=/usr/sbin/handle-sshpw
|
|
|
|
ExecStart=/usr/sbin/sshd -D $OPTIONS -f /etc/ssh/sshd_config.anaconda
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|