Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/daemon.global.class.in

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

revision 2003 by niro, Mon Aug 13 09:32:23 2012 UTC revision 2007 by niro, Mon Aug 13 09:42:10 2012 UTC
# Line 20  restart_service() Line 20  restart_service()
20   done   done
21  }  }
22    
23    # stops the whole service via remote cmd
24    stop_service()
25    {
26     local pid
27     for pid in $(pidof sslsvd)
28     do
29     kill -15 ${pid}
30     sleep 1
31     kill -9 ${pid}
32     done
33    }
34    
35  # # import_resource $table $serial $resource $value  # # import_resource $table $serial $resource $value
36  # import_resource()  # import_resource()
37  # {  # {
# Line 86  help_topics() Line 98  help_topics()
98   mecho "\trequire  - verify plugin requirements"   mecho "\trequire  - verify plugin requirements"
99   mecho "\treload   - reloads all client classes plugins"   mecho "\treload   - reloads all client classes plugins"
100   mecho "\trestart  - restarts the daemon"   mecho "\trestart  - restarts the daemon"
101     mecho "\tstop     - stops the daemon"
102   mecho "\tnocolors - disable colors, useful for the webclient"   mecho "\tnocolors - disable colors, useful for the webclient"
103     mecho "\tcolors   - enable colors"
104   mecho "\tquiet    - do not print any unecessary messages"   mecho "\tquiet    - do not print any unecessary messages"
105   mecho "\thelp     - shows help"   mecho "\thelp     - shows help"
106   mecho "\tquit     - quits the connection to the server"   mecho "\tquit     - quits the connection to the server"
# Line 351  path_not_empty() Line 365  path_not_empty()
365   # every thing went ok, directory not empty   # every thing went ok, directory not empty
366   return 0   return 0
367  }  }
368    
369    help_daemon_mroot()
370    {
371     mecho "get daemon.mroot"
372     mecho " Prints current MROOT variable."
373     mecho
374     mecho "set daemon.mroot [path]"
375     mecho " set MROOT variable to given path."
376    }
377    
378    get_daemon_mroot()
379    {
380     rvecho "${MROOT}"
381    }
382    
383    set_daemon_mroot()
384    {
385     local path=$1
386    
387     if [[ -d ${path} ]]
388     then
389     export MROOT="${path}"
390     decho "MROOT='${MROOT}' is set."
391     else
392     eecho "Path '${path}' does not exist. MROOT not set."
393     fi
394    }

Legend:
Removed from v.2003  
changed lines
  Added in v.2007