equal
deleted
inserted
replaced
100 |
100 |
101 function exit_fail() |
101 function exit_fail() |
102 { |
102 { |
103 if [ -r /etc/rc.status ]; then |
103 if [ -r /etc/rc.status ]; then |
104 rc_failed |
104 rc_failed |
|
105 rc_status -v |
105 rc_exit |
106 rc_exit |
106 else |
107 else |
107 echo " failed" |
108 echo " failed" |
|
109 exit 1 |
|
110 fi |
|
111 } |
|
112 |
|
113 #------------------------------------------------------------------------------ |
|
114 |
|
115 function exit_dead() |
|
116 { |
|
117 if [ -r /etc/rc.status ]; then |
|
118 rc_failed |
|
119 rc_status -v |
|
120 rc_exit |
|
121 else |
|
122 echo " dead" |
108 exit 1 |
123 exit 1 |
109 fi |
124 fi |
110 } |
125 } |
111 |
126 |
112 #------------------------------------------------------------------------------ |
127 #------------------------------------------------------------------------------ |
226 |
241 |
227 # master module loaded and masters not waiting for devices? |
242 # master module loaded and masters not waiting for devices? |
228 if [ ${MASTERS_RUNNING} -eq 0 -a ${MASTERS_IDLE} -eq 0 ]; then |
243 if [ ${MASTERS_RUNNING} -eq 0 -a ${MASTERS_IDLE} -eq 0 ]; then |
229 exit_running |
244 exit_running |
230 else |
245 else |
231 exit_fail |
246 exit_dead |
232 fi |
247 fi |
233 ;; |
248 ;; |
234 |
249 |
235 *) |
250 *) |
236 echo "USAGE: $0 {start|stop|restart|status}" |
251 echo "USAGE: $0 {start|stop|restart|status}" |