Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/sysvinit/sysvinit.client.class.in

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

revision 2167 by niro, Fri Jan 10 14:06:02 2014 UTC revision 2168 by niro, Fri Jan 10 14:06:52 2014 UTC
# Line 12  set_system_service() Line 12  set_system_service()
12   [[ -z ${command} ]] && help_system_service && return 1   [[ -z ${command} ]] && help_system_service && return 1
13   [[ -z ${service} ]] && help_system_service && return 1   [[ -z ${service} ]] && help_system_service && return 1
14    
15   if [[ ! -x ${MROOT}/etc/rc.d/init.d/${service} ]]   if [[ ! -x ${MROOT}@@SYSVRCDDIR@@/${service} ]]
16   then   then
17   eecho "Service '${service}' unkown!"   eecho "Service '${service}' unkown!"
18   return 1   return 1
# Line 29  set_system_service() Line 29  set_system_service()
29   fi   fi
30    
31   case "${command}" in   case "${command}" in
32   start) /etc/rc.d/init.d/"${service}" start ;;   start) @@SYSVRCDDIR@@/"${service}" start ;;
33   stop) /etc/rc.d/init.d/"${service}" stop ;;   stop) @@SYSVRCDDIR@@/"${service}" stop ;;
34   restart) /etc/rc.d/init.d/"${service}" restart ;;   restart) @@SYSVRCDDIR@@/"${service}" restart ;;
35   reload) /etc/rc.d/init.d/"${service}" reload ;;   reload) @@SYSVRCDDIR@@/"${service}" reload ;;
36   enable) rc-config add "${service}" ;;   enable) rc-config add "${service}" ;;
37   disable) rc-config del "${service}" ;;   disable) rc-config del "${service}" ;;
38   *) help_system_service && return ;;   *) help_system_service && return ;;
# Line 47  get_system_service() Line 47  get_system_service()
47   [[ -z ${command} ]] && help_system_service && return 1   [[ -z ${command} ]] && help_system_service && return 1
48   [[ -z ${service} ]] && help_system_service && return 1   [[ -z ${service} ]] && help_system_service && return 1
49    
50   if [[ ! -x ${MROOT}/etc/rc.d/init.d/${service} ]]   if [[ ! -x ${MROOT}@@SYSVRCDDIR@@/${service} ]]
51   then   then
52   eecho "Service '${service}' unkown!"   eecho "Service '${service}' unkown!"
53   return 1   return 1
# Line 64  get_system_service() Line 64  get_system_service()
64   fi   fi
65    
66   case "${command}" in   case "${command}" in
67   status) /etc/rc.d/init.d/"${service}" status ;;   status) @@SYSVRCDDIR@@/"${service}" status ;;
68   enabled) rc-config show "${service}" ;;   enabled) rc-config show "${service}" ;;
69   runlevel) eecho "function on todo" ;;   runlevel) eecho "function on todo" ;;
70   *) help_system_service && return ;;   *) help_system_service && return ;;

Legend:
Removed from v.2167  
changed lines
  Added in v.2168