From e7f1313bbbf44e529e5de40045b191e026af6b7b Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 7 Nov 2019 14:31:29 +0100 Subject: rpcd: add respawn param The rpcd service is an important service, but if the service stops working for any reason, no one will ever respawn that service. With this commit, the procd service will monitor if the rpcd service is running. If the rpcd service has crashed, then procd respawns the rpcd service. Signed-off-by: Florian Eckert (cherry picked from commit 432ec292ccc8b634facacbd018d08947d204225a) --- package/system/rpcd/files/rpcd.init | 1 + 1 file changed, 1 insertion(+) (limited to 'package/system/rpcd/files') diff --git a/package/system/rpcd/files/rpcd.init b/package/system/rpcd/files/rpcd.init index 77ebcbe6cb..b1061b906c 100755 --- a/package/system/rpcd/files/rpcd.init +++ b/package/system/rpcd/files/rpcd.init @@ -12,6 +12,7 @@ start_service() { procd_open_instance procd_set_param command "$PROG" ${socket:+-s "$socket"} ${timeout:+-t "$timeout"} + procd_set_param respawn ${respawn_retry:-0} procd_close_instance } -- cgit v1.2.3