Re: Stop-Skript for jigadmin

On Mon, 12 Jan 1998, Carsten-Schulz wrote:

> Hello,
> 
> I want to shutdown the Jigsaw, this ist possible with a perl-Skript
> (http://litsts.w3.org/Archives/Public/www-jigsaw/msg05521.html). But
> after the Jigsaw thread is done, the thread with the jigadm-Server is
> going on. How can I finished this thread?

You can modify the script to send multiple requests on the admin server 
directly.
The next request will stop the http-server:
(change to whatever server you want to stop, if multiple ones)

LOAD-RESOURCE /http-server/control/Stop HTTP/1.1
Date: Mon, 12 Jan 1998 15:07:46 GMT
Content-Type: x-jigsaw/config
Accept: */*
Authorization: Basic (adminserver auth)
Host: www4.inria.fr:8009
User-Agent: Jigsaw/1.0b

And to stop the admin server itself:

LOAD-RESOURCE /control/Stop HTTP/1.1
Date: Mon, 12 Jan 1998 15:24:30 GMT
Content-Type: x-jigsaw/config
Accept: */*
Authorization: Basic (adminserver auth)
Host: www4.inria.fr:8009
User-Agent: Jigsaw/1.0b

So, you have to modify the previous script a little:
replace

#
# send the request to this server
#
select SOCKET; $|=1; select STDOUT;
print SOCKET "GET $file HTTP/1.0\n";
&verbose("SOCKET -> GET $file HTTP/1.0");

by

#
# send the request to this server
#
select SOCKET; $|=1; select STDOUT;
print SOCKET "LOAD-RESOURCE $file HTTP/1.0\n";
&verbose("SOCKET -> LOAD-RESOURCE $file HTTP/1.0");

and issue multiple call on the admin server, to the above mentionned URLs.
A much smarter script can be done that will get all the managed server 
and to a stop on all the servers, then on the adminserver.
To do so, you must decode the answer to the following request (on the 
admin server):

ENUMERATE-IDENTIFIERS / HTTP/1.1
Date: Mon, 12 Jan 1998 15:29:21 GMT
Content-Type: x-jigsaw/config
Accept: */*
Authorization: Basic (adminserver auth) 
Host: www4:8009
User-Agent: Jigsaw/1.0b

HTTP/1.1 200 OK
Date: Mon, 12 Jan 1998 15:32:55 GMT
Content-Length: 32
Content-Type: x-jigsaw/config
Server: JigsawAdmin/1.0a5

^@^Khttp-server^@^Frealms^@^Gcontrol^@^@

realms and control are not servers, all the other identifiers are servers.

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \                Architecture Domain - Jigsaw
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    

Received on Monday, 12 January 1998 10:36:15 UTC