forked from pool/openssh
1d3b4a412f
- Adjust service to not spam restart and reload only on fails OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=157
19 lines
394 B
Desktop File
19 lines
394 B
Desktop File
[Unit]
|
|
Description=OpenSSH Daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
EnvironmentFile=-/etc/sysconfig/ssh
|
|
ExecStartPre=/usr/sbin/sshd-gen-keys-start
|
|
ExecStartPre=/usr/sbin/sshd -t $SSHD_OPTS
|
|
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartPreventExitStatus=255
|
|
TasksMax=infinity
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|