ssh.service 538 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=OpenBSD Secure Shell server
  3. Documentation=man:sshd(8) man:sshd_config(5)
  4. After=network.target auditd.service
  5. ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
  6. [Service]
  7. EnvironmentFile=-/etc/default/ssh
  8. ExecStartPre=/usr/sbin/sshd -t
  9. ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
  10. ExecReload=/usr/sbin/sshd -t
  11. ExecReload=/bin/kill -HUP $MAINPID
  12. KillMode=process
  13. Restart=on-failure
  14. RestartPreventExitStatus=255
  15. Type=notify
  16. RuntimeDirectory=sshd
  17. RuntimeDirectoryMode=0755
  18. [Install]
  19. WantedBy=multi-user.target
  20. Alias=sshd.service