[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Thu Feb 5 11:23:25 2004 -->
- <!--x-from-r13: serrzlre-zy ng @bepebffUebhc.pbz (Uert Terrzlre) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: 1075996738.14266.76.camel@devel --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Looking for software to keep processes running. -->
- <li><em>date</em>: Thu Feb 5 11:23:25 2004</li>
- <li><em>from</em>: freemyer-ml at NorcrossGroup.com (Greg Freemyer)</li>
- <li><em>in-reply-to</em>: <1075996738.14266.76.camel@devel></li>
- <li><em>references</em>: <<a href="msg00164.html">[email protected]</a>> <1075996738.14266.76.camel@devel></li>
- <li><em>subject</em>: [ale] Looking for software to keep processes running.</li>
If your programs are meant to run basically anytime the computer is
running, that is exactly what /etc/inittab is designed for.
Things like login prompts, etc. are run from there.
My question is, why does /etc/inittab seem to be out of favor?
10 years ago, it was common to install daemon like processes into there.
Now it seems that most daemons use the rc.d approach. I don't mind that
approach, but it does not monitor and restart daemons so the daemon
tends to have small parent program like the below that monitor its own
child and restarts it if it dies.
The only thing I can think of is maybe the rc.d approach is easier to
upgrade from version to version.
Greg
--
Greg Freemyer
On Thu, 2004-02-05 at 10:58, Chris Fowler wrote:
> while (1) {
> switch((pid = fork())) {
> case -1:
> exit(1);
> case 0:
> execl("/bin/program", "/bin/program", 0);
> exit(1);
> default:
> waitpid(pid, NULL, 0);
> }
> }
>
> All program must be ran in the foreground and not become a daemon.
>
> On Thu, 2004-02-05 at 10:42, Jim Lynch wrote:
> > I've got a number of scripts that start processes that run in user space
> > that I'd like to keep running. (RH 7.2). Is there a utility that would
> > help me? I know I can write a script that would do a ps periodically and
> > make sure the process was still running and if not start it up, but I was
> > just curious if there was a utility that would automate that process. I
> > googled for something, but didn't see anything promising, except a
> > reference to Big Brother.
> >
> > THanks,
> > Jim.
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00170" href="msg00170.html">[ale] Looking for software to keep processes running.</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00164" href="msg00164.html">[ale] Looking for software to keep processes running.</a></strong>
<ul><li><em>From:</em> jwl at sgi.com (Jim Lynch)</li></ul></li>
<li><strong><a name="00167" href="msg00167.html">[ale] Looking for software to keep processes running.</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00168.html">[ale] Poor support (was Smoothwall 2.0 vs IPCop 1.3.0)</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00170.html">[ale] Looking for software to keep processes running.</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00167.html">[ale] Looking for software to keep processes running.</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00170.html">[ale] Looking for software to keep processes running.</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00169"><strong>Date</strong></a></li>
<li><a href="threads.html#00169"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>