Magellan Linux

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

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

revision 1915 by niro, Wed Nov 9 13:24:00 2011 UTC revision 2006 by niro, Mon Aug 13 09:40:07 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 84  help_topics() Line 96  help_topics()
96   mecho "\tauth     - authenticate to the daemon"   mecho "\tauth     - authenticate to the daemon"
97   mecho "\tprovide  - shows provides of a system"   mecho "\tprovide  - shows provides of a system"
98   mecho "\trequire  - verify plugin requirements"   mecho "\trequire  - verify plugin requirements"
99     mecho "\treload   - reloads all client classes plugins"
100     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 249  print_provide() Line 265  print_provide()
265   # sort them alpabetically   # sort them alpabetically
266   sorted=$(for i in ${PROVIDE}; do echo "${i}"; done | sort)   sorted=$(for i in ${PROVIDE}; do echo "${i}"; done | sort)
267   # do not escape, or CRLFS get printed to screen too   # do not escape, or CRLFS get printed to screen too
268   rvecho ${sorted}   rvecho ${sorted}
269  }  }
270    
271  # message only echo | disabled in quiet mode  # message only echo | disabled in quiet mode

Legend:
Removed from v.1915  
changed lines
  Added in v.2006