webui-new/development/sshd/sshd.service

18 lines
353 B
SYSTEMD
Raw Normal View History

2025-03-24 22:39:52 +08:00
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target
[Service]
Type=simple
PIDFile=/opt/var/run/sshd.pid
ExecStartPre=/opt/sbin/sshd -t
ExecStart=/opt/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=sshd.service