Skip to contentSkip to conversation

monit, no include from monit.d

PATCH In review Vitus Jensen 2 participants 3 messages Dec 22, 2010

lore
Share & tools
lore
#0 lore raw

Hej!

OE contains a receipe for the monit daemon which can monitor processes and restart them if they are not there. The receipe creates a directory /etc/monit.d/ on the target system but does not enable the include directive in /etc/monitrc so the service is unusable from other receipes without editiing a file on the target system. I think /etc/monit.d/ is a good idea and receipes should rely on monit to include from it.

The current receipe contains sed commands to modify monitrc, which I'm not very familiar with, so I added a path for the include. Please comment if all monitrc changes should be combined somewhere (sed vs patch). Patch to current head follows.

Vitus

Signature · 2 lines
Vitus Jensen, Hannover, Germany, Universe (current)
pgp public key available from keyservers
#1 lore raw

PATCH 1/1 monit: enable include from /etc/monit.d

---
 .../enable-include-from-etc-monit.d.patch          |   10 ++++++++++
 recipes/monit/monit_4.10.1.bb                      |    3 ++-
 2 files changed, 12 insertions(+), 1 deletions(-)
 create mode 100644 recipes/monit/monit-4.10.1/enable-include-from-etc-monit.d.patch
recipes/monit/monit-4.10.1/enable-include-from-etc-monit.d.patch new file +10 -0
new file mode 100644
index 0000000..3370921
@@ -0,0 +1,10 @@
+--- a/monitrc
++++ b/monitrc
+@@ -212,6 +212,6 @@
+ ## It is possible to include additional configuration parts from other files or
+ ## directories.
+ #
+-#  include /etc/monit.d/*
++include /etc/monit.d/*
+ #
+ #
recipes/monit/monit_4.10.1.bb +2 -1
index 4bdeeb8..ebdeb8e 100644
@@ -1,9 +1,10 @@
 LICENSE = "GPL"
 DEPENDS = "openssl"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.tildeslash.com/monit/dist/monit-${PV}.tar.gz\
 	file://no-strip-in-makefile.patch \
+	file://enable-include-from-etc-monit.d.patch \
 	file://init"
 
 INITSCRIPT_NAME = "monit"
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] monit: enable include from /etc/monit.d

Quoted 32 lines · Vitus Jensen

---
 .../enable-include-from-etc-monit.d.patch          |   10 ++++++++++ recipes/monit/monit_4.10.1.bb                      |    3 ++-

 2 files changed, 12 insertions(+), 1 deletions(-)

 create mode 100644 recipes/monit/monit-4.10.1/enable-include-from-etc-monit.d.patch

recipes/monit/monit-4.10.1/enable-include-from-etc-monit.d.patch new file +10 -0
new file mode 100644
index 0000000..3370921
@@ -0,0 +1,10 @@
+--- a/monitrc
++++ b/monitrc
+@@ -212,6 +212,6 @@
+ ## It is possible to include additional configuration parts from other files or
+ ## directories.
+ #
+-#  include /etc/monit.d/*
++include /etc/monit.d/*
+ #
+ #
recipes/monit/monit_4.10.1.bb +0 -0
index 4bdeeb8..ebdeb8e 100644
@@ -1,9 +1,10 @@

 LICENSE = "GPL"
 DEPENDS = "openssl"

recipes/monit/monit_4.10.1.bb +1 -1
-PR = "r1"
+PR = "r2"
Quoted 8 lines

 SRC_URI = "http://www.tildeslash.com/monit/dist/monit-${PV}.tar.gz\
       file://no-strip-in-makefile.patch \
+       file://enable-include-from-etc-monit.d.patch \
       file://init"

 INITSCRIPT_NAME = "monit"
--
1.7.2.3

looks ok. Can you also make the lincense more specific which version of GPL it is ?
and also add yout signed-off-by

Quoted 7 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel