openssh/sshd.service

16 lines
270 B
SYSTEMD
Raw Normal View History

2024-04-29 19:31:28 +08:00
[Unit]
Description=OpenSSH Daemon
2024-10-30 14:41:03 +08:00
Wants=sshdgenkeys.service
After=sshdgenkeys.service
After=network.target
2024-04-29 19:31:28 +08:00
[Service]
2024-10-30 14:41:03 +08:00
Type=notify-reload
2024-04-29 19:31:28 +08:00
ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target