/[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 1813 Revision 1814
547 mkdir -p "${svcdir}/snapshot/$$" 547 mkdir -p "${svcdir}/snapshot/$$"
548 cp -pP "${svcdir}"/started/* "${svcdir}/snapshot/$$/" 548 cp -pP "${svcdir}"/started/* "${svcdir}/snapshot/$$/"
549 fi 549 fi
550 550
551 svc_stop 551 svc_stop
552 retval="$?"
552 553
553 if [[ ${IN_BACKGROUND} == "true" ]] ; then 554 if [[ ${IN_BACKGROUND} == "true" ]] ; then
554 res= 555 res=
555 for x in $(dolisting "${svcdir}/snapshot/$$/") ; do 556 for x in $(dolisting "${svcdir}/snapshot/$$/") ; do
556 if service_stopped "${x##*/}" ; then 557 if service_stopped "${x##*/}" ; then
557 res="${res}${x##*/} " 558 res="${res}${x##*/} "
558 fi 559 fi
559 done 560 done
560 [[ -n ${res} ]] && echo "${res}" > "${svcdir}/restart/${myservice}" 561 [[ -n ${res} ]] && echo "${res}" > "${svcdir}/restart/${myservice}"
561 fi 562 fi
563
564 exit "${retval}"
562 ;; 565 ;;
563 start) 566 start)
564 svc_start 567 svc_start
565 retval=$? 568 retval=$?
566 if ! is_runlevel_start && [[ -s "${svcdir}/restart/${myservice}" ]] ; then 569 if ! is_runlevel_start && [[ -s "${svcdir}/restart/${myservice}" ]] ; then
569 done 572 done
570 fi 573 fi
571 if [[ -e "${svcdir}/restart/${myservice}" ]] ; then 574 if [[ -e "${svcdir}/restart/${myservice}" ]] ; then
572 rm -f "${svcdir}/restart/${myservice}" 575 rm -f "${svcdir}/restart/${myservice}"
573 fi 576 fi
574 exit ${retval} 577 exit "${retval}"
575 ;; 578 ;;
576 needsme|ineed|usesme|iuse|broken) 579 needsme|ineed|usesme|iuse|broken)
577 trace_dependencies "-${arg}" 580 trace_dependencies "-${arg}"
578 ;; 581 ;;
579 status) 582 status)

Legend:
Removed from v.1813  
changed lines
  Added in v.1814

  ViewVC Help
Powered by ViewVC 1.1.20