Thread View: ch.comp.os.linux
6 messages
6 total messages
Started by Sven Kirmess
Thu, 20 May 1999 00:00
kill/killproc
Author: Sven Kirmess
Date: Thu, 20 May 1999 00:00
Date: Thu, 20 May 1999 00:00
12 lines
833 bytes
833 bytes
killproc -TERM /usr/sbin/sendmail Kann mir jemand kurz erkl�ren, wass killproc macht? (Keine man page zu killproc). kill -1 `head -1 /var/run/sendmail.pid` was bedeutet das -1 hinter kill? Ich find es nicht in der man page. Sven
Re: kill/killproc
Author: Christof Buergi
Date: Thu, 20 May 1999 00:00
Date: Thu, 20 May 1999 00:00
19 lines
1488 bytes
1488 bytes
In article <374435E0.90992785@gmx.net>,
Sven Kirmess <Sven.Kirmess@gmx.net> writes:
> killproc -TERM /usr/sbin/sendmail
Sendet ein SIGTERM (bitte beenden Sie sich) an den Prozess, der mit
"/usr/bin/sendmail" gestartet wurde (also sendmail).
> kill -1 `head -1 /var/run/sendmail.pid`
> was bedeutet das -1 hinter kill? Ich find es nicht in der man page.
Der Strich deutet einen Parameter an. Es wird also Signal Nummer 1
gesendet, und das ist SIGHUP. Bei sendmail bewirkt dies AFAIK, das
die Konfigurationsdatei neu gelesen wird.
--
Christof Buergi | cbuergi@buergi.lugs.ch
| http://tristan.discordia.ch/
----------------------------------------------------------------------------
All generalizations stink.
Re: kill/killproc
Author: Marc SCHAEFER
Date: Fri, 21 May 1999 00:00
Date: Fri, 21 May 1999 00:00
17 lines
1102 bytes
1102 bytes
Sven Kirmess <Sven.Kirmess@gmx.net> wrote: > killproc -TERM /usr/sbin/sendmail > Kann mir jemand kurz erkl�ren, wass killproc macht? (Keine man page zu > killproc). To my knowledge, it opens the file /usr/sbin/sendmail, then it goes through /proc/[0-9]*/exe to find the right inode, then it sends a -TERM signal. Note that if the argument doesn't start with a /, the process name is used instead of the file executing. > kill -1 `head -1 /var/run/sendmail.pid` > was bedeutet das -1 hinter kill? Ich find es nicht in der man page. well, it should. It means the first line.
Re: kill/killproc
Author: Thomas Portmann
Date: Fri, 21 May 1999 00:00
Date: Fri, 21 May 1999 00:00
23 lines
1246 bytes
1246 bytes
Sven.Kirmess@gmx.net (AKA "Sven Kirmess ") said:
> killproc -TERM /usr/sbin/sendmail
>
> Kann mir jemand kurz erkl�ren, wass killproc macht? (Keine man page zu
> killproc).
? keine ahnung....
> kill -1 `head -1 /var/run/sendmail.pid`
> was bedeutet das -1 hinter kill? Ich find es nicht in der man page.
kill -<signal> pid, was bedeutet das 1 die nummer des signals ist das
dem entsprechenden pid geschickt wird. wobei /usr/include/sys/signal.h
die signals enthaelt (man kill eventuell auch). jedenfalls 1=SIGHUP.
tom
--
Windows 95: n.
32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit
operating system originally coded for a 4-bit microprocessor, written
by a 2-bit company that can't stand for 1 bit of competition.
Re: kill/killproc
Author: tmutter
Date: Fri, 21 May 1999 00:00
Date: Fri, 21 May 1999 00:00
30 lines
2075 bytes
2075 bytes
Sven.Kirmess@gmx.net writes: >Kann mir jemand kurz erkl�ren, wass killproc macht? (Keine man page zu >killproc). >kill -1 `head -1 /var/run/sendmail.pid` >was bedeutet das -1 hinter kill? Ich find es nicht in der man page. Hallo Swen Ich hab bei mir sowohl zu kill als auch zu killproc eine man-Page. Ich schick sie dir mal per separater E-Mail. Der Unterschied liegt darin, dass du bei "kill" die ProzessID angeben musst bei killproc aber den Pfad zum executable file. Du kannst ein Programm ja auch mehrfach starten, kill schickt das Signal einem spezifischen Prozess, killproc sucht alle Instanzen die von einem Programmfile gestartet wurden und sendet ihnen das Signal. Das -1 ist das Signal, welches gesendet wird. Wenn du nichts angibst, wird -2 geschickt. "killproc -l" liefert eine Liste aller Signale. Die wichtigsten sind wohl SIGHUP = HangUp. Die meisten Programme lesen darauf hin ihre config-Files neu ein. SIGINT = Ctrl-C = Interrupt. Normalerweise userangeforderte Beendigung. SIGKILL = Sofort beenden, keine Widderrede. Signale geh�ren zur Interprozesskommunikation unter Linux. Weshalb der Befehl zum Absetzten ausgerechnet "kill" heisst, das wissen die Unix-G�tter. Ich kille noch lange nicht jedes Programm, mit dem ich mit kill spreche. Thomy
Re: kill/killproc
Author: Marc SCHAEFER
Date: Fri, 21 May 1999 00:00
Date: Fri, 21 May 1999 00:00
7 lines
819 bytes
819 bytes
Thomas Portmann <portmann@elca.ch> wrote: > kill -<signal> pid, was bedeutet das 1 die nummer des signals ist das > dem entsprechenden pid geschickt wird. wobei /usr/include/sys/signal.h > die signals enthaelt (man kill eventuell auch). jedenfalls 1=SIGHUP. or kill -l to list the signals (and sorry to not have answered right the first time to Sven, I read too fast).
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads