Difference between revisions of "/etc/systemd/system/sshd.service"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
EnvironmentFile=-/etc/default/ssh | EnvironmentFile=-/etc/default/ssh | ||
ExecStartPre=/usr/sbin/sshd -t | ExecStartPre=/usr/sbin/sshd -t | ||
− | ExecStart=/usr/sbin/sshd -D $SSHD_OPTS | + | '''ExecStart'''=/usr/sbin/sshd -D $SSHD_OPTS |
ExecReload=/usr/sbin/sshd -t | ExecReload=/usr/sbin/sshd -t | ||
ExecReload=/bin/kill -HUP $MAINPID | ExecReload=/bin/kill -HUP $MAINPID |
Revision as of 05:53, 30 June 2020
[Unit] Description=OpenBSD Secure Shell server Documentation=man:sshd(8) man:sshd_config(5) After=network.target auditd.service ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
[Service] EnvironmentFile=-/etc/default/ssh ExecStartPre=/usr/sbin/sshd -t ExecStart=/usr/sbin/sshd -D $SSHD_OPTS ExecReload=/usr/sbin/sshd -t ExecReload=/bin/kill -HUP $MAINPID KillMode=process Restart=on-failure RestartPreventExitStatus=255 Type=notify RuntimeDirectory=sshd RuntimeDirectoryMode=0755
[Install] WantedBy=multi-user.target Alias=sshd.service
See also
- Systemd services:
systemctl
[status | is-active | start | daemon-reload | stop | mask
|reload
|restart
|reboot
|enable
|disable
|cat
],systemctl list-units
,systemctl list-timers
,systemctl --failed
,systemctl get-default
,systemctl --help
,.service, .timer, .socket
,systemctl restart elasticsearch.service
,systemctl status apt-daily
,systemctl status oscapd
Advertising: