15 lines
302 B
SYSTEMD
15 lines
302 B
SYSTEMD
|
[Unit]
|
||
|
Description=OpenSSH Daemon
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=/etc/sysconfig/ssh
|
||
|
ExecStartPre=/usr/sbin/sshd-gen-keys-start
|
||
|
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
KillMode=process
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|