automatically restart sshd.service on-failure with 42s interval
This commit is contained in:
parent
4936e20991
commit
0463fbae2f
@ -8,6 +8,8 @@ ExecStartPre=/usr/sbin/sshd-keygen
|
|||||||
ExecStart=/usr/sbin/sshd -D $OPTIONS
|
ExecStart=/usr/sbin/sshd -D $OPTIONS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=42s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user