Bill Peck wrote:
Hello,
Boot reporting needs to happen in post_anamon.
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
why am I brain dead Today
From 8b4817d1e958569f9ae002b43f8d41897cd2cde1 Mon Sep 17 00:00:00 2001
From: Bill Peck <bpeck(a)redhat.com>
Date: Sat, 10 Jan 2009 11:26:19 -0500
Subject: [PATCH] Boot anamon stuff needs to be in post_anamon not pre.
---
snippets/post_anamon | 16 ++++++++++++++++
snippets/pre_anamon | 15 ---------------
2 files changed, 16 insertions(+), 15 deletions(-)
create mode 100644 snippets/post_anamon
diff --git a/snippets/post_anamon b/snippets/post_anamon
new file mode 100644
index 0000000..0996cde
--- /dev/null
+++ b/snippets/post_anamon
@@ -0,0 +1,16 @@
+#if $str($getVar('anamon_enabled','')) == "1"
+cat << __EOT__ > /etc/rc.anamon
+cd /tmp || exit 1
+wget "http://$server/cobbler/aux/anamon.py"
+./anamon.py --watchfile /var/log/boot.log --name "$name" --server
"$server" --port "$http_port" --exit --fg
+chmod a-x /etc/rc.anamon
+__EOT__
+
+chmod 755 /etc/rc.anamon
+
+cat << __EOT__ >> /etc/rc.local
+if [ -x "/etc/rc.anamon" ]; then
+ /etc/rc.anamon
+fi
+__EOT__
+#end if
diff --git a/snippets/pre_anamon b/snippets/pre_anamon
index a6d60a0..2e16209 100644
--- a/snippets/pre_anamon
+++ b/snippets/pre_anamon
@@ -2,19 +2,4 @@
cd /tmp
wget "http://$server/cobbler/aux/anamon.py"
python anamon.py --name "$name" --server "$server" --port
"$http_port"
-
-cat << __EOT__ > /etc/rc.anamon
-cd /tmp || exit 1
-wget "http://$server/cobbler/aux/anamon.py"
-./anamon.py --watchfile /var/log/boot.log --name "$name" --server
"$server" --port "$http_port" --exit --fg
-chmod a-x /etc/rc.anamon
-__EOT__
-
-chmod 755 /etc/rc.anamon
-
-cat << __EOT__ >> /etc/rc.local
-if [ -x "/etc/rc.anamon" ]; then
- /etc/rc.anamon
-fi
-__EOT__
#end if
--
1.6.0.6