diff options
Diffstat (limited to 'EndoForge/src/sshd.service')
-rw-r--r-- | EndoForge/src/sshd.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/EndoForge/src/sshd.service b/EndoForge/src/sshd.service new file mode 100644 index 0000000..156daa9 --- /dev/null +++ b/EndoForge/src/sshd.service | |||
@@ -0,0 +1,18 @@ | |||
1 | [Unit] | ||
2 | Description=OpenBSD Secure Shell server | ||
3 | Documentation=man:sshd(8) man:sshd_config(5) | ||
4 | |||
5 | [Service] | ||
6 | Restart=always | ||
7 | ExecStartPre=/usr/sbin/sshd -t -f ${HOME}/.ssh/sshd_config | ||
8 | ExecStart=/usr/sbin/sshd -D -e -f ${HOME}/.ssh/sshd_config | ||
9 | ExecReload=/usr/sbin/sshd -t -f ${HOME}/.ssh/sshd_config | ||
10 | ExecReload=/bin/kill -HUP $MAINPID | ||
11 | KillMode=process | ||
12 | Restart=on-failure | ||
13 | RestartPreventExitStatus=255 | ||
14 | Type=notify | ||
15 | |||
16 | [Install] | ||
17 | WantedBy=default.target | ||
18 | #Alias=sshd.service | ||