/[baselayout]/trunk/sbin/runscript.sh
Gentoo

Diff of /trunk/sbin/runscript.sh

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

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

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

  ViewVC Help
Powered by ViewVC 1.1.20