Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 15:42:59 -0400
From:      David Banning <david+dated+1063050181.812806@skytracker.ca>
To:        questions@freebsd.org
Subject:   how to run a program as a daemon
Message-ID:  <20030903194259.GA23225@skytrackercanada.com>

next in thread | raw e-mail | index | archive | help
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...

-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030903194259.GA23225>