Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/sysvinit/mcore-system-service.in

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

revision 2665 by niro, Tue Nov 10 15:00:32 2015 UTC revision 2666 by niro, Fri Dec 4 10:56:16 2015 UTC
# Line 11  control_service() Line 11  control_service()
11  {  {
12   local command="$1"   local command="$1"
13   local service="$2"   local service="$2"
14     local argv="$3"
15   local chrooted   local chrooted
16    
17   if [[ ! -x ${MROOT}@@SYSVRCDDIR@@/${service} ]]   if [[ ! -x ${MROOT}@@SYSVRCDDIR@@/${service} ]]
# Line 30  control_service() Line 31  control_service()
31   fi   fi
32    
33   case "${command}" in   case "${command}" in
34   start) @@SYSVRCDDIR@@/"${service}" start ;;   start) @@SYSVRCDDIR@@/"${service}" start "${argv}" ;;
35   stop) @@SYSVRCDDIR@@/"${service}" stop ;;   stop) @@SYSVRCDDIR@@/"${service}" stop "${argv}" ;;
36   restart) @@SYSVRCDDIR@@/"${service}" restart ;;   restart) @@SYSVRCDDIR@@/"${service}" restart "${argv}" ;;
37   reload) @@SYSVRCDDIR@@/"${service}" reload ;;   reload) @@SYSVRCDDIR@@/"${service}" reload "${argv}" ;;
38   enable) rc-config add "${service}" ;;   enable) rc-config add "${service}" ;;
39   disable) rc-config del "${service}" ;;   disable) rc-config del "${service}" ;;
40   status) @@SYSVRCDDIR@@/"${service}" status ;;   status) @@SYSVRCDDIR@@/"${service}" status "${argv}" ;;
41   enabled) rc-config show "${service}" ;;   enabled) rc-config show "${service}" ;;
42   runlevel) eecho "function on todo" ;;   runlevel) eecho "function on todo" ;;
43   *) return 1 ;;   *) return 1 ;;

Legend:
Removed from v.2665  
changed lines
  Added in v.2666