Date: Wed, 3 Sep 2003 12:49:00 -0700 From: Joshua Oreman <oremanj@get-linux.org> To: David Banning <david+dated+1063050181.812806@skytracker.ca> Cc: questions@freebsd.org Subject: Re: how to run a program as a daemon Message-ID: <20030903194900.GB4033@webserver> In-Reply-To: <20030903194259.GA23225@skytrackercanada.com> References: <20030903194259.GA23225@skytrackercanada.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 03, 2003 at 03:42:59PM -0400 or thereabouts, David Banning wrote: > I am running tmda-ofmipd for my smtp server and occasionally > it dies. I wonder how I could set it up to run so that if it > dies for some reason, it will start up again. Right now, it > starts in my rc.local like so; > > /usr/local/bin/tmda-ofmipd -R imap://localhost -u tofmipd > > The only way I can think of doing it is to set up a crontab > entry to a program that would check if it is still running, > and if it is not, then have it start it again. > > I was hoping there is an easier way, maybe by putting it in inetd.conf > or something... You can use /etc/ttys for this (despite the name). -- Josh > > -- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030903194900.GB4033>