This ensures that the %post scriptlet exits cleanly and prevents
"Stopping cobbler daemon: [ OK ]" messages from littering the screen
on updates.
---
Patch is also attached for use with git am. :)
cobbler.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler.spec b/cobbler.spec
index c3a9049..57ea7e5 100644
--- a/cobbler.spec
+++ b/cobbler.spec
@@ -113,7 +113,7 @@ done
# reserialize and restart
/usr/bin/cobbler reserialize
/sbin/chkconfig --add cobblerd
-/sbin/service cobblerd condrestart
+/sbin/service cobblerd condrestart >/dev/null 2>&1 || :
%preun
if [ $1 = 0 ]; then
------------------------------------------------------------------------
_______________________________________________
cobbler-devel mailing list
cobbler-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel
I am not sure I agree with this one; I'd like to know if the restart failed.
--Michael