From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga conga.spec.in.in clustermon.spec.in.in
Date: 5 Sep 2006 19:53:40 -0000 [thread overview]
Message-ID: <20060905195340.25633.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-09-05 19:53:40
Modified files:
. : conga.spec.in.in clustermon.spec.in.in
Log message:
Redirect 'd-bus reload' error messages to /dev/null
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.39&r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/clustermon.spec.in.in.diff?cvsroot=cluster&r1=1.12&r2=1.13
--- conga/conga.spec.in.in 2006/08/23 19:58:42 1.39
+++ conga/conga.spec.in.in 2006/09/05 19:53:40 1.40
@@ -252,7 +252,8 @@
%post -n ricci
/sbin/chkconfig --add ricci
-/bin/kill -s SIGHUP `cat /var/run/messagebus.pid` >/dev/null 2>&1
+DBUS_PID=`cat /var/run/messagebus.pid 2> /dev/null`
+/bin/kill -s SIGHUP $DBUS_PID > /dev/null 2>&1
/sbin/service oddjobd reload >/dev/null 2>&1
%preun -n ricci
@@ -263,7 +264,8 @@
%postun -n ricci
if [ "$1" == "0" ]; then
- /bin/kill -s SIGHUP `cat /var/run/messagebus.pid` > /dev/null 2>&1
+ DBUS_PID=`cat /var/run/messagebus.pid 2> /dev/null`
+ /bin/kill -s SIGHUP $DBUS_PID > /dev/null 2>&1
/sbin/service oddjobd reload > /dev/null 2>&1
fi
if [ "$1" == "1" ]; then
--- conga/clustermon.spec.in.in 2006/08/22 23:01:17 1.12
+++ conga/clustermon.spec.in.in 2006/09/05 19:53:40 1.13
@@ -89,7 +89,8 @@
%post -n modcluster
/sbin/chkconfig --add modclusterd
-/bin/kill -s SIGHUP `cat /var/run/messagebus.pid` > /dev/null 2>&1
+DBUS_PID=`cat /var/run/messagebus.pid 2> /dev/null`
+/bin/kill -s SIGHUP $DBUS_PID > /dev/null 2>&1
/sbin/service oddjobd reload > /dev/null 2>&1
%preun -n modcluster
@@ -100,7 +101,8 @@
%postun -n modcluster
if [ "$1" == "0" ]; then
- /bin/kill -s SIGHUP `cat /var/run/messagebus.pid` > /dev/null 2>&1
+ DBUS_PID=`cat /var/run/messagebus.pid 2> /dev/null`
+ /bin/kill -s SIGHUP $DBUS_PID > /dev/null 2>&1
/sbin/service oddjobd reload > /dev/null 2>&1
fi
if [ "$1" == "1" ]; then
reply other threads:[~2006-09-05 19:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060905195340.25633.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).