Skip to contentSkip to conversation

monit: new package

PATCH New Joris Offouga 1 participant 1 message Mar 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monit: new package

---
 meta-oe/recipes-support/monit/monit/monit     | 42 +++++++++++++++
 meta-oe/recipes-support/monit/monit/monitrc   | 44 +++++++++++++++
 meta-oe/recipes-support/monit/monit_5.26.0.bb | 53 +++++++++++++++++++
 3 files changed, 139 insertions(+)
 create mode 100644 meta-oe/recipes-support/monit/monit/monit
 create mode 100644 meta-oe/recipes-support/monit/monit/monitrc
 create mode 100644 meta-oe/recipes-support/monit/monit_5.26.0.bb
meta-oe/recipes-support/monit/monit/monit new file +42 -0
new file mode 100644
index 000000000..394704e06
@@ -0,0 +1,42 @@
+#! /bin/sh 
+#
+# This is an init script for openembedded
+# Copy it to /etc/init.d/monit and type
+# > update-rc.d monit defaults 89
+#
+monit=/usr/bin/monit
+pidfile=/var/run/monit.pid
+monit_args="-c /etc/monitrc"
+
+test -x "$monit" || exit 0
+
+case "$1" in
+  start)
+    echo -n "Starting Monit"
+    start-stop-daemon --start --quiet --exec $monit -- $monit_args
+    RETVAL=$?
+    echo "."
+    ;;
+  stop)
+    echo -n "Stopping Monit"
+    start-stop-daemon --stop --quiet --pidfile $pidfile
+    RETVAL=$?
+    echo "."
+    ;;
+  restart)
+    $0 stop
+    $0 start
+    RETVAL=$?
+    ;;
+  status)
+    $monit $monit_args status
+    RETVAL=$?
+    echo "."
+    ;;
+  *)
+    echo "Usage: $0 {start|stop|restart|status}"
+    exit 1
+esac
+
+exit $RETVAL
+
meta-oe/recipes-support/monit/monit/monitrc new file +44 -0

44 lines not on this page · raw message

meta-oe/recipes-support/monit/monit_5.26.0.bb new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.20.1