9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] stop httpd
@ 2004-01-22 17:08 Matthias Teege
  2004-01-22 17:13 ` David Presotto
  0 siblings, 1 reply; 7+ messages in thread
From: Matthias Teege @ 2004-01-22 17:08 UTC (permalink / raw)
  To: 9fans

Moin,

how do I stop httpd? I run it with ip/httpd/httpd
and can connect to it but if I use kill http
there is nothing.

What do I missing?
Matthias


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] stop httpd
  2004-01-22 17:08 [9fans] stop httpd Matthias Teege
@ 2004-01-22 17:13 ` David Presotto
  2004-01-22 18:36   ` Matthias Teege
  0 siblings, 1 reply; 7+ messages in thread
From: David Presotto @ 2004-01-22 17:13 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 29 bytes --]

as host owner
	slay httpd|rc

[-- Attachment #2: Type: message/rfc822, Size: 2239 bytes --]

From: Matthias Teege <matthias@mteege.de>
To: 9fans@cse.psu.edu
Subject: [9fans] stop httpd
Date: Thu, 22 Jan 2004 17:08:48 0000
Message-ID: <f2bdef28cd2f486cbd6656c076a64303@mteege.de>

Moin,

how do I stop httpd? I run it with ip/httpd/httpd
and can connect to it but if I use kill http
there is nothing.

What do I missing?
Matthias

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] stop httpd
  2004-01-22 17:13 ` David Presotto
@ 2004-01-22 18:36   ` Matthias Teege
  2004-01-22 19:17     ` Christoph Lohmann
  2004-01-22 19:24     ` David Presotto
  0 siblings, 2 replies; 7+ messages in thread
From: Matthias Teege @ 2004-01-22 18:36 UTC (permalink / raw)
  To: 9fans

On Thu Jan 22 17:36:22 GMT 2004, presotto@closedmind.org wrote:

> as host owner
> 	slay httpd|rc

Hmm, that wont work. The owner of my cpu server
is bootes. I login at bootes, start httpd with
ip/httpd/httpd, and run slay httpd|rc -- no
output. httpd still running.

My /lib/namespace.httpd looks like this
bind /sys/doc /usr/web/sys/doc
bind /usr/mtg/www /usr/web/mtg

I've also created a user "web" with newsuser so
/usr/web exist.

d-rwxr-xr-x M 95 web    web    0 Jan 22 18:10 /usr/web

Matthias


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] stop httpd
  2004-01-22 18:36   ` Matthias Teege
@ 2004-01-22 19:17     ` Christoph Lohmann
  2004-01-22 19:24     ` David Presotto
  1 sibling, 0 replies; 7+ messages in thread
From: Christoph Lohmann @ 2004-01-22 19:17 UTC (permalink / raw)
  To: 9fans


The only way for stopping httpd here was to:

	cd /proc/$httpd_proc/ctl;
	chgrp -u $user ctl;
	echo kill >ctl;

httpd runs as user none and only allows write on its ctl from this user.

20h


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] stop httpd
  2004-01-22 18:36   ` Matthias Teege
  2004-01-22 19:17     ` Christoph Lohmann
@ 2004-01-22 19:24     ` David Presotto
  2004-01-22 19:55       ` rog
  1 sibling, 1 reply; 7+ messages in thread
From: David Presotto @ 2004-01-22 19:24 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 143 bytes --]

Try Kill instead of slay.  slay looks only for your processes but
httpd runs as none.

This is stupid.  I should merge kill, slay, and Kill.

[-- Attachment #2: Type: message/rfc822, Size: 2674 bytes --]

From: Matthias Teege <matthias@mteege.de>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] stop httpd
Date: Thu, 22 Jan 2004 18:36:49 0000
Message-ID: <f08d82db94a8b52fe8506cbaa78137c8@mteege.de>

On Thu Jan 22 17:36:22 GMT 2004, presotto@closedmind.org wrote:

> as host owner
> 	slay httpd|rc

Hmm, that wont work. The owner of my cpu server
is bootes. I login at bootes, start httpd with
ip/httpd/httpd, and run slay httpd|rc -- no
output. httpd still running.

My /lib/namespace.httpd looks like this
bind /sys/doc /usr/web/sys/doc
bind /usr/mtg/www /usr/web/mtg

I've also created a user "web" with newsuser so
/usr/web exist.

d-rwxr-xr-x M 95 web    web    0 Jan 22 18:10 /usr/web

Matthias

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] stop httpd
  2004-01-22 19:24     ` David Presotto
@ 2004-01-22 19:55       ` rog
  2004-01-23  9:22         ` boyd, rounin
  0 siblings, 1 reply; 7+ messages in thread
From: rog @ 2004-01-22 19:55 UTC (permalink / raw)
  To: 9fans

> This is stupid.  I should merge kill, slay, and Kill.

if you're doing that...  it would be quite nice to allow it to accept
process ids as arguments too; trivial but nonetheless useful, i think.

i've sometimes wondered if it might be useful for the output to
contain some sort of annotation to contextualise the process id; e.g.

echo kill>/proc/3090/note # 63628K Rendez emu

useful when one's got several instances of the same (multithreaded)
program running but one only wishes to kill one of them.  sometimes
the process id's good enough, but not always.

a quick way to send to notepg too might be useful too.

hmm.  8 lines could quickly become 100!



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] stop httpd
  2004-01-22 19:55       ` rog
@ 2004-01-23  9:22         ` boyd, rounin
  0 siblings, 0 replies; 7+ messages in thread
From: boyd, rounin @ 2004-01-23  9:22 UTC (permalink / raw)
  To: 9fans

> echo kill>/proc/3090/note # 63628K Rendez emu

yeah, i did this on lunix 'cos i wanted to know who was going to be KIA.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-23  9:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 17:08 [9fans] stop httpd Matthias Teege
2004-01-22 17:13 ` David Presotto
2004-01-22 18:36   ` Matthias Teege
2004-01-22 19:17     ` Christoph Lohmann
2004-01-22 19:24     ` David Presotto
2004-01-22 19:55       ` rog
2004-01-23  9:22         ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).