Comment Comment by mrsareen There is a automatic restart option in systemctl that solves this exact issue -[Service] Restart=on-failure RestartSec=5s parent mrsareen 5 years ago
[Service] Restart=on-failure RestartSec=5s