Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/client/include/sysvinit.client.class

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

revision 2087 by niro, Fri May 10 11:37:38 2013 UTC revision 2088 by niro, Fri May 10 13:20:27 2013 UTC
# Line 18  set_system_service() Line 18  set_system_service()
18   return 1   return 1
19   fi   fi
20    
21     if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]]
22     then
23     case "${command}" in
24     start|stop|restart|reload)
25     eecho "Command not available while \$MROOT is set"
26     return 1
27     ;;
28     esac
29     fi
30    
31   case "${command}" in   case "${command}" in
32   start) /etc/rc.d/init.d/"${service}" start ;;   start) /etc/rc.d/init.d/"${service}" start ;;
33   stop) /etc/rc.d/init.d/"${service}" stop ;;   stop) /etc/rc.d/init.d/"${service}" stop ;;
# Line 43  get_system_service() Line 53  get_system_service()
53   return 1   return 1
54   fi   fi
55    
56     if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]]
57     then
58     case "${command}" in
59     status)
60     eecho "Command not available while \$MROOT is set"
61     return 1
62     ;;
63     esac
64     fi
65    
66   case "${command}" in   case "${command}" in
67   status) /etc/rc.d/init.d/"${service}" status ;;   status) /etc/rc.d/init.d/"${service}" status ;;
68   enabled) rc-config show "${service}" ;;   enabled) rc-config show "${service}" ;;
# Line 50  get_system_service() Line 70  get_system_service()
70   *) help_system_service && return ;;   *) help_system_service && return ;;
71   esac   esac
72  }  }
   

Legend:
Removed from v.2087  
changed lines
  Added in v.2088