|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Valentin Davydov 2:5020/400 20 Dec 2002 11:42:50 To : Vladislav Zhuk Subject : Re: мониторинг процессов --------------------------------------------------------------------------------
> From: Vladislav Zhuk <Vladislav.Zhuk@f197.n465.z2.fidonet.org>
> Date: Tue, 17 Dec 2002 21:34:29 +0300
>
> >>> Сейчас стоит monitord (из портов), но он процессор сильно жрет
> T>> А этого кто поднимет при отвале? :-) Ещё один нужен. Который
> T>> тоже может завалиться. Hо в этом случае ещё одного. И так далее.
> T>> До самого инита. :-)
> EG>
> EG> Init, кстати, способен перезапускать отвалившийся процесс,
> EG> если он при старте в фон самостоятельно не уходит, конечно.
>
>можно было бы возложить сабжевую задачу на init, но лично мне не
>подходит т.к. я периодически передергиваю init (когда нужно для
>отладки временно снять pppd с ttydX), при этом будут прибиваться
>и переподниматься и все порожденные инитом процессы, что делать
>не нужно.
man init
Line status (on, off, secure, getty, or window information) may be
changed in the ttys(5) file without a reboot by sending the signal SIGHUP
to init with the command ``kill -HUP 1''. On receipt of this signal,
init re-reads the ttys(5) file. When a line is turned off in ttys(5),
init will send a SIGHUP signal to the controlling process for the session
associated with the line. For any lines that were previously turned off
in the ttys(5) file and are now on, init executes the command specified
in the second field. If the command or window field for a line is
changed, the change takes effect at the end of the current login session
(e.g., the next time init starts a process on the line). If a line is
commented out or deleted from ttys(5), init will not do anything at all
to that line. However, it will complain that the relationship between
lines in the ttys(5) file and records in the utmp(5) file is out of sync,
so this practice is not recommended.
Вал. Дав.
--- ifmail v.2.15dev5
* Origin: Demos online service (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/657766408a07.html, оценка из 5, голосов 10
|