Bug 54246
Summary: | /etc/init.d/amd script improper shutdown of amd | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <jgd> | ||||
Component: | am-utils | Assignee: | Peter Vrabec <pvrabec> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Aaron Brown <abrown> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.1 | CC: | dennis.brylow | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-10-05 19:33:43 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Need Real Name
2001-10-02 15:40:40 UTC
Created attachment 33238 [details]
/etc/init.d/amd which correctly waits for amd to shut down
I suggest: stop() { echo -n $"Stopping $prog: " killproc $amd -TERM # this part is from wait4amd2die delay=3 count=10 i=1 maxcount=`expr $count + 1` while [ $i != $maxcount ]; do # run amq /usr/sbin/amq > /dev/null 2>&1 RETVAL=$? if [ $RETVAL != 0 ] then # amq failed to run (because amd is dead) rm -f /var/lock/subsys/amd /var/run/amd.pid echo return $RETVAL fi sleep $delay i=`expr $i + 1` done failure $"amd shutdown" echo echo "amd is still up" return $RETVAL } |