[Bug 192889] Review Request: openais standards based cluster framework
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jun 9 10:41:59 UTC 2006
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: Review Request: openais standards based cluster framework
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=192889
------- Additional Comments From paul at city-fan.org 2006-06-09 06:33 EST -------
(In reply to comment #40)
> Thanks for the link about scriptlets. I haven't seen this link before. I
> believe I have the condrestart code wrong (according to the scriptlet docs).
>
> Do I need something like?
> %postun
> if [ "$1" -ge "1" ]; then
> /sbin/service openais condrestart >/dev/null 2>&1 ||:
> fi
>
> the current code looks like:
> %post
> /sbin/chkconfig --add openais || :
> /sbin/service openais condrestart || :
Yes, though could make it a one-liner:
%postun
[ "$1" -ge "1" ] && /sbin/service openais condrestart &>/dev/null || :
/sbin/service would then be needed in Requires(preun) and Requires(postun) -
don't forget to remove the condrestart from %post.
--
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Fedora-package-review
mailing list