automatically restart sshd.service on-failure with 42s interval

This commit is contained in:
Petr Lautrbach 2013-09-11 16:38:22 +02:00
parent 4936e20991
commit 0463fbae2f

View File

@ -8,6 +8,8 @@ ExecStartPre=/usr/sbin/sshd-keygen
ExecStart=/usr/sbin/sshd -D $OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target