From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 12:46:52 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60ECA16A4BF for ; Wed, 3 Sep 2003 12:46:52 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 7FB8B43FE3 for ; Wed, 3 Sep 2003 12:46:51 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 4734 invoked by uid 1000); 3 Sep 2003 19:49:00 -0000 Date: Wed, 3 Sep 2003 12:49:00 -0700 From: Joshua Oreman To: David Banning Message-ID: <20030903194900.GB4033@webserver> References: <20030903194259.GA23225@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030903194259.GA23225@skytrackercanada.com> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: how to run a program as a daemon X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 19:46:52 -0000 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"