--- mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2012/08/13 09:32:23 2003 +++ mcore-src/trunk/mcore-tools/daemon/include/daemon.global.class 2012/08/13 09:38:21 2005 @@ -20,6 +20,18 @@ done } +# stops the whole service via remote cmd +stop_service() +{ + local pid + for pid in $(pidof sslsvd) + do + kill -15 ${pid} + sleep 1 + kill -9 ${pid} + done +} + # # import_resource $table $serial $resource $value # import_resource() # { @@ -86,6 +98,7 @@ mecho "\trequire - verify plugin requirements" mecho "\treload - reloads all client classes plugins" mecho "\trestart - restarts the daemon" + mecho "\tstop - stops the daemon" mecho "\tnocolors - disable colors, useful for the webclient" mecho "\tquiet - do not print any unecessary messages" mecho "\thelp - shows help"