Johannes Habichs Blog: Ganglia 3.1.2 Running as as a service After all

Suche


Inhalte überspringen: zur Funktionsnavigation zur Inhaltenavigation mit Inhaltsübersicht und Verzeichnis A-Z

Topic

Meine Aktivitäten am RRZE und HPC Allgemein, CV

Status

Online seit einem Jahr und 161 Tagen
Letzter Eintrag: 2009.12.01, 22:08

Kalender

Oktober 2009
Mo Di Mi Do Fr Sa So
       1   2   3   4 
 5   6   7   8   9  10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
September   November

Letzte Beiträge

Montag, 5. Oktober 2009

Ganglia 3.1.2 Running as as a service After all

With the help of the srvany.exe from the Windows Ressource Kit Tools 2003 you can run any executable in Win2008 and Win2008 R2 either as a service.

You create yourself a service running solely srvany.exe

sc create GMOND binpath= c:\programme\ganglia\srvany.exe

Edit the service specs in the registry:
LocalMachine--> System\\CurrentControlSet\\Services\\GMond

Add a subkey named Parameters
Inside "Parameters" create a String value named Application.
Edit Application and put the call to ganglia into the value data field.
E.g. c:\programme\ganglia\gmond.exe -c "c:\programme\ganglia\gmond-node.conf "



Start the service over mmc or by sc start GMOND and it should be running.



(There should also be a way to do this with the cygwin service creation tool cygrunsrv. Thanks to Nigel for pointing that out.)
  • Kommentieren (keine Kommentare)


Nach oben