public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] automatic restart of crushed processes...
@ 2005-07-26 10:00 Jarry
  2005-07-26 11:10 ` Neil Bothwick
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jarry @ 2005-07-26 10:00 UTC (permalink / raw
  To: gentoo-user

Greetings to all Gentoo-users!

Is it somehow possible to check, whether a certain process is running,
and if not, then start it? I would like to use it for some processes
that crush sometimes (like teamspeak and some game-servers), and to
mointor sshd, because it is critical for me (my server will be 300km
away from me).

I thought about writing some small shell-script, which would be run
by cron at regular intervals, check if a process is running (something
like "ps -e | grep $PROCNAME", or maybe with "pidof -s $PROCNAME")
and if not, than it would start that process with its script in
/etc/init.d.

But if there is already something which would do the same, I don't
want to work on inventing the wheel again. Moreover, my shell scripts
are rather "quick'n'dirty", so maybe I should start with reading
"Advanced Bash-Scripting Guide"...

Jarry

-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2005-07-26 15:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-26 10:00 [gentoo-user] automatic restart of crushed processes Jarry
2005-07-26 11:10 ` Neil Bothwick
2005-07-26 12:35 ` Mariusz Pękala
2005-07-26 14:54 ` Bastian Balthazar Bux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox