Magellan Linux

Diff of /branches/magellan-next/include/mtools.minc

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

revision 20 by niro, Thu Jun 2 21:36:05 2011 UTC revision 21 by niro, Thu Jun 2 22:39:08 2011 UTC
# Line 142  mstartunit() Line 142  mstartunit()
142   # do not start services on bootstrap or MROOT!=/   # do not start services on bootstrap or MROOT!=/
143   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
144   then   then
145     echo -e " ${COLBLUE}[${COLGREEN}+${COLBLUE}]${COLDEFAULT} starting unit ${service} ..."
146   # start or restart the service   # start or restart the service
147   systemctl try-restart ${service}   systemctl try-restart ${service}
148   fi   fi
# Line 193  mstopunit() Line 194  mstopunit()
194   # do not stop services on bootstrap or MROOT!=/   # do not stop services on bootstrap or MROOT!=/
195   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
196   then   then
197     echo -e " ${COLBLUE}[${COLGREEN}+${COLBLUE}]${COLDEFAULT} stopping unit ${service} ..."
198   systemctl stop ${service}   systemctl stop ${service}
199   # try harder   # try harder
200   if [[ -n $(pidof ${service_exec}) ]]   if [[ -n $(pidof ${service_exec}) ]]

Legend:
Removed from v.20  
changed lines
  Added in v.21