summaryrefslogtreecommitdiff
path: root/EndoForge/src/sshd.service
blob: 156daa9eeab6bf7f99f5b7a5aae88c0f2d5cd338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)

[Service]
Restart=always
ExecStartPre=/usr/sbin/sshd -t -f ${HOME}/.ssh/sshd_config
ExecStart=/usr/sbin/sshd -D -e -f ${HOME}/.ssh/sshd_config
ExecReload=/usr/sbin/sshd -t -f ${HOME}/.ssh/sshd_config
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify

[Install]
WantedBy=default.target
#Alias=sshd.service