[openwrt/openwrt] busybox: Let procd respawn cron
LEDE Commits
lede-commits at lists.infradead.org
Thu Nov 12 12:22:31 EST 2020
ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7185c5ec7d357897c1379234a00570afe2ee9eff
commit 7185c5ec7d357897c1379234a00570afe2ee9eff
Author: Bruno Randolf <br1 at einfach.org>
AuthorDate: Mon Nov 9 10:43:10 2020 +0000
busybox: Let procd respawn cron
On some systems I see the issue that crond dies after a few days.
Simply letting procd respawn the process is a simple safety-net.
Signed-off-by: Bruno Randolf <br1 at einfach.org>
---
package/utils/busybox/Makefile | 2 +-
package/utils/busybox/files/cron | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index 25db4ff387..71bd888c71 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=busybox
PKG_VERSION:=1.31.1
-PKG_RELEASE:=5
+PKG_RELEASE:=6
PKG_FLAGS:=essential
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
diff --git a/package/utils/busybox/files/cron b/package/utils/busybox/files/cron
index ca04a0c170..4efdfa52ca 100755
--- a/package/utils/busybox/files/cron
+++ b/package/utils/busybox/files/cron
@@ -32,6 +32,7 @@ start_service() {
for crontab in /etc/crontabs/*; do
procd_set_param file "$crontab"
done
+ procd_set_param respawn
procd_close_instance
}
More information about the lede-commits
mailing list