/[baselayout]/branches/baselayout-1_12/sbin/runscript.sh
Gentoo

Diff of /branches/baselayout-1_12/sbin/runscript.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2090 Revision 2091
192 if in_runlevel "${SVCNAME}" "${BOOTLEVEL}" && \ 192 if in_runlevel "${SVCNAME}" "${BOOTLEVEL}" && \
193 [[ ${SOFTLEVEL} != "reboot" && ${SOFTLEVEL} != "shutdown" && \ 193 [[ ${SOFTLEVEL} != "reboot" && ${SOFTLEVEL} != "shutdown" && \
194 ${SOFTLEVEL} != "single" ]] ; then 194 ${SOFTLEVEL} != "single" ]] ; then
195 ewarn "WARNING: you are stopping a boot service." 195 ewarn "WARNING: you are stopping a boot service."
196 fi 196 fi
197 197
198 if [[ ${svcpause} != "yes" && ${RC_NO_DEPS} != "yes" ]] ; then 198 if [[ ${svcpause} != "yes" && ${RC_NO_DEPS} != "yes" ]] ; then
199 if net_service "${SVCNAME}" ; then 199 if net_service "${SVCNAME}" ; then
200 # A net.* service
201 if in_runlevel "${SVCNAME}" "${BOOTLEVEL}" || \
202 in_runlevel "${SVCNAME}" "${mylevel}" ; then
203 # Only worry about net.* services if this is the last one
204 # running or if RC_NET_STRICT_CHECKING is set ...
205 ! is_net_up && mydeps="net" 200 is_net_up || mydeps="net"
206 fi 201 fi
207 mydeps="${mydeps} ${SVCNAME}" 202 mydeps="${mydeps} ${SVCNAME}"
208 else
209 mydeps="${SVCNAME}"
210 fi
211 fi 203 fi
212 204
213 # Save the IN_BACKGROUND var as we need to clear it for stopping depends 205 # Save the IN_BACKGROUND var as we need to clear it for stopping depends
214 local ib_save="${IN_BACKGROUND}" 206 local ib_save="${IN_BACKGROUND}"
215 unset IN_BACKGROUND 207 unset IN_BACKGROUND
216 208
217 for mydep in ${mydeps} ; do 209 for mydep in ${mydeps} ; do
218 for x in $(needsme "${mydep}") ; do 210 for x in $(needsme "${mydep}") ; do
219 # Service not currently running, continue 211 service_started "${x}" && stop_service "${x}"
220 if service_started "${x}" ; then
221 stop_service "${x}"
222 service_list=( "${service_list[@]}" "${x}" ) 212 service_list=( "${service_list[@]}" "${x}" )
223 fi
224 done 213 done
225 done 214 done
226 215
227 for x in "${service_list[@]}" ; do 216 for x in "${service_list[@]}" ; do
228 # We need to test if the service has been marked stopped 217 # We need to test if the service has been marked stopped

Legend:
Removed from v.2090  
changed lines
  Added in v.2091

  ViewVC Help
Powered by ViewVC 1.1.20