Package iceprod :: Package client :: Module commands :: Class stopserver
[hide private]
[frames] | no frames]

Class stopserver

source code

object --+    
         |    
   Command --+
             |
            stopserver

Command: stopserver <grid>[.<daemon>]

Stop a server or a specific daemon on the server.
Can stop multiple servers and daemons at once.

Only works if main iceprodd daemon is running on the server,
otherwise the change is only in the database.
 
Arguments:
  <grid>      Specify the grid to stop, either by name or id
  [.<daemon>] (Optional) Specify the daemon to stop.
               (soapdh,soapqueue,soaphist,soapmon)
  
Returns:
  Returns the result of the mysql query (success or failure).
  Warning that if the grid or daemon is wrong it will likely
  print success because there was no mysql error.
  
Examples:
  Stop GLOW
     stopserver GLOW
        or
     stopserver 1
  
  Stop soapqueue on GLOW and soapdh on glow-test
     stopserver GLOW.soapqueue glow-test.soapdh
 

Instance Methods [hide private]
 
Execute(self, shell) source code
 
_stop(self, shell, grid, daemon) source code

Inherited from Command: CheckArgs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  shortdoc = 'stopserver <grid>[.<daemon>] : Stop an iceprod ser...
hash(x)
  numArgs = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute

Class Variable Details [hide private]

shortdoc

hash(x)

Value:
'stopserver <grid>[.<daemon>] : Stop an iceprod server.'