Magellan Linux

Diff of /trunk/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 28 by niro, Fri Aug 26 22:18:48 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}   # dont use try-restart, works only with active services!
148     systemctl restart ${service}
149   fi   fi
150  }  }
151    
# Line 193  mstopunit() Line 195  mstopunit()
195   # do not stop services on bootstrap or MROOT!=/   # do not stop services on bootstrap or MROOT!=/
196   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
197   then   then
198     echo -e " ${COLBLUE}[${COLGREEN}+${COLBLUE}]${COLDEFAULT} stopping unit ${service} ..."
199   systemctl stop ${service}   systemctl stop ${service}
200   # try harder   # try harder
201   if [[ -n $(pidof ${service_exec}) ]]   if [[ -n $(pidof ${service_exec}) ]]
# Line 238  mreloadunit() Line 241  mreloadunit()
241   esac   esac
242   fi   fi
243    
244     # reload daemon to honor changed unit files
245     systemctl daemon-reload
246    
247   # do not stop services on bootstrap or MROOT!=/   # do not stop services on bootstrap or MROOT!=/
248   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ ${MAGE_BOOTSTRAP} != true ]] && [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
249   then   then

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