Skip to contentSkip to conversation

package/watchdog: new package

PATCH New Alejandro González 3 participants 4 messages Aug 8, 2020 – Aug 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/watchdog: new package

watchdog is a flexible watchdog daemon that improves on the already available Busybox watchdog daemon by providing more advanced features, like defining custom system status checks and executing repair scripts to react upon invariants that don't hold.

---
 package/Config.in              |  1 +
 package/watchdog/Config.in     | 10 ++++++++++
 package/watchdog/watchdog.hash |  3 +++
 package/watchdog/watchdog.mk   | 13 +++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/watchdog/Config.in
 create mode 100644 package/watchdog/watchdog.hash
 create mode 100644 package/watchdog/watchdog.mk
package/Config.in +1 -0
index d7e79f4795..768e99d9ed 100644
@@ -2421,6 +2421,7 @@ menu "System tools"
 	source "package/tpm2-totp/Config.in"
 	source "package/unscd/Config.in"
 	source "package/util-linux/Config.in"
+	source "package/watchdog/Config.in"
 	source "package/xdg-dbus-proxy/Config.in"
 	source "package/xen/Config.in"
 	source "package/xvisor/Config.in"
package/watchdog/Config.in new file +10 -0
new file mode 100644
index 0000000000..bf485034d7
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_WATCHDOG
+	bool "watchdog"
+	depends on BR2_USE_MMU
+	help
+	  Watchdog is a daemon that periodically pets a watchdog device
+	  if the configured system status checks pass. If they do not,
+	  the daemon may execute repair commands, shutdown the system or
+	  reboot it.
+
+	  https://sourceforge.net/projects/watchdog/
package/watchdog/watchdog.hash new file +3 -0
new file mode 100644
index 0000000000..7366c1b5e1
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  b8e7c070e1b72aee2663bdc13b5cc39f76c9232669cfbb1ac0adc7275a3b019d  watchdog-5.16.tar.gz
+sha256  af7f3f94e85080204b37f7c53717a2c94c6b54d7fa516ebd74e008cb4c0391bd  COPYING
package/watchdog/watchdog.mk new file +13 -0
new file mode 100644
index 0000000000..fe95c5c1ff
@@ -0,0 +1,13 @@
+################################################################################
+#
+# watchdog
+#
+################################################################################
+
+WATCHDOG_VERSION = 5.16
+WATCHDOG_SITE = http://downloads.sourceforge.net/sourceforge/watchdog
+WATCHDOG_AUTORECONF = YES
+WATCHDOG_LICENSE = GPL-2.0+
+WATCHDOG_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/watchdog: new package

Hello,

Quoted 6 lines · Alejandro Gonz?lez

watchdog is a flexible watchdog daemon that improves on the already available Busybox watchdog daemon by providing more advanced features, like defining custom system status checks and executing repair scripts to react upon invariants that don't hold.

Quoted 7 lines
---
 package/Config.in              |  1 +
 package/watchdog/Config.in     | 10 ++++++++++
 package/watchdog/watchdog.hash |  3 +++
 package/watchdog/watchdog.mk   | 13 +++++++++++++
 4 files changed, 27 insertions(+)

when adding a new package, you should add an entry in the DEVELOPERS
file: https://buildroot.org/downloads/manual/manual.html#DEVELOPERS

Quoted 47 lines
 create mode 100644 package/watchdog/Config.in
 create mode 100644 package/watchdog/watchdog.hash
 create mode 100644 package/watchdog/watchdog.mk
package/Config.in +1 -0
index d7e79f4795..768e99d9ed 100644
@@ -2421,6 +2421,7 @@ menu "System tools"
        source "package/tpm2-totp/Config.in"
        source "package/unscd/Config.in"
        source "package/util-linux/Config.in"
+       source "package/watchdog/Config.in"
        source "package/xdg-dbus-proxy/Config.in"
        source "package/xen/Config.in"
        source "package/xvisor/Config.in"
package/watchdog/Config.in new file +10 -0
new file mode 100644
index 0000000000..bf485034d7
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_WATCHDOG
+       bool "watchdog"
+       depends on BR2_USE_MMU
+       help
+         Watchdog is a daemon that periodically pets a watchdog device
+         if the configured system status checks pass. If they do not,
+         the daemon may execute repair commands, shutdown the system or
+         reboot it.
+
+         https://sourceforge.net/projects/watchdog/
package/watchdog/watchdog.hash new file +3 -0
new file mode 100644
index 0000000000..7366c1b5e1
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  b8e7c070e1b72aee2663bdc13b5cc39f76c9232669cfbb1ac0adc7275a3b019d  watchdog-5.16.tar.gz
+sha256  af7f3f94e85080204b37f7c53717a2c94c6b54d7fa516ebd74e008cb4c0391bd  COPYING
package/watchdog/watchdog.mk new file +0 -0
new file mode 100644
index 0000000000..fe95c5c1ff

package/watchdog/watchdog.mk line 9

Quoted 9 lines
package/watchdog/watchdog.mk new file +9 -0
@@ -0,0 +1,13 @@
+################################################################################
+#
+# watchdog
+#
+################################################################################
+
+WATCHDOG_VERSION = 5.16
+WATCHDOG_SITE = http://downloads.sourceforge.net/sourceforge/watchdog
+WATCHDOG_AUTORECONF = YES

Why does AUTORECONF is needed?

Quoted 11 lines
package/watchdog/watchdog.mk new file +4 -1
+WATCHDOG_LICENSE = GPL-2.0+
+WATCHDOG_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
--

2.28.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Regards,
Asaf.

#2 lore raw

PATCH 1/1 package/watchdog: new package

In reply to Alejandro González
Quoted 6 lines · On Sat, 8 Aug 2020 23:48:15 +0200 Alejandro Gonz?lez…

watchdog is a flexible watchdog daemon that improves on the already available Busybox watchdog daemon by providing more advanced features, like defining custom system status checks and executing repair scripts to react upon invariants that don't hold.

Thanks, I've applied to next. I've handled the potential conflict with Busybox, which also has a "watchdog" applet.

I've also addressed the comments from Asaf about the DEVELOPERS entry and the AUTORECONF = YES, but I forgot to do that initially, so I did follow-up commits for these.

Thanks for your contribution!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#3 lore raw

PATCH 1/1 package/watchdog: new package

El s?b., 29 ago. 2020 a las 9:14, Asaf Kahlon (<[email protected]>) escribi?:

Quoted 1 line

Why does AUTORECONF is needed?

It is not. I added it by mistake, sorry about that!

El s?b., 29 ago. 2020 a las 14:35, Thomas Petazzoni (<[email protected]>) escribi?:

Quoted 5 lines

Thanks, I've applied to next. I've handled the potential conflict with Busybox, which also has a "watchdog" applet.
I've also addressed the comments from Asaf about the DEVELOPERS entry and the AUTORECONF =3D YES, but I forgot to do that initially, so I did follow-up commits for these.

Thank you very much for the extra changes. Next time I add a package I will remember adding a DEVELOPERS entry :)

Cheers!