Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 150087 Details for
Bug 232335
'service ipvsadm status' returns 0 when the service is stopped
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for ipvsadm init script
ipvsadm-init.diff (text/plain), 1.95 KB, created by
Ryan McCabe
on 2007-03-14 19:59:41 UTC
(
hide
)
Description:
patch for ipvsadm init script
Filename:
MIME Type:
Creator:
Ryan McCabe
Created:
2007-03-14 19:59:41 UTC
Size:
1.95 KB
patch
obsolete
>--- ipvsadm.orig 2007-03-14 15:47:32.000000000 -0400 >+++ ipvsadm 2007-03-14 15:52:21.000000000 -0400 >@@ -53,37 +53,50 @@ > exit 0 > fi > >+RETVAL=0 >+ > case "$1" in > start) >- # If we don't clear these first, we might be adding to >- # pre-existing rules. >- action "Clearing the current IPVS table:" ipvsadm -C >- echo -n "Applying IPVS configuration: " >- ipvsadm-restore < "$IPVSADM_CONFIG" && \ >- success "Applying IPVS configuration" || \ >- failure "Applying IPVS configuration" >- echo >- touch /var/lock/subsys/ipvsadm >+ # If we don't clear these first, we might be adding to >+ # pre-existing rules. >+ action "Clearing the current IPVS table:" ipvsadm -C >+ echo -n "Applying IPVS configuration: " >+ ipvsadm-restore < "$IPVSADM_CONFIG" && \ >+ success "Applying IPVS configuration" || \ >+ failure "Applying IPVS configuration" >+ RETVAL=$? >+ echo >+ if [ $RETVAL = 0 ]; then >+ touch /var/lock/subsys/ipvsadm >+ fi > ;; > > stop) >- action "Clearing the current IPVS table:" ipvsadm -C >+ action "Clearing the current IPVS table:" ipvsadm -C > rm -f /var/lock/subsys/ipvsadm >+ RETVAL=$? > ;; > > reload|reload-force|restart) > #Start should flush everything > $0 start >+ RETVAL=$? > ;; > > panic) >- # I'm not sure what panic does but in the case of IPVS >- # it makes sense just to clear everything >- action "Clearing the current IPVS table:" ipvsadm -C >+ # I'm not sure what panic does but in the case of IPVS >+ # it makes sense just to clear everything >+ action "Clearing the current IPVS table:" ipvsadm -C >+ RETVAL=$? > ;; > > status) >- ipvsadm -L -n >+ status ipvsadm >+ RETVAL=$? >+ if [ $RETVAL = 0 ]; then >+ ipvsadm -L -n >+ RETVAL=$? >+ fi > ;; > > save) >@@ -91,6 +104,7 @@ > ipvsadm-save -n > $IPVSADM_CONFIG 2>/dev/null && \ > success "Saving IPVS table to $IPVSADM_CONFIG" || \ > failure "Saving IPVS table to $IPVSADM_CONFIG" >+ RETVAL=$? > echo > ;; > >@@ -100,5 +114,5 @@ > exit 1 > esac > >-exit 0 >+exit $RETVAL >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 232335
: 150087 |
157530