Either I've totally misunderstood your question or else I think you have
misunderstood what /etc/inetd.conf is for. inetd is a daemon listening
for incoming connections from a user on all the ports listed in the
file, and upon connection inetd then starts the corresponding program
which will then communicate with the user. So by putting the qmail
startup code in inetd.conf, you basically tell inetd to start qmail
every time someone sends an email to your mail server, which is surely
not what you want. Don't you want inetd to start the smtp daemon every
time someone sends an email?

The script to start qmail is usually put somewhere in the /etc/rc*.d/
directories, which means it's started up every time the machine
(re)boots. I'm sure you can find the explanation in the qmail
documentation.

If you for some reason want to restart qmail regularly, e.g. at 8
o'clock each morning, then you write a script which handles the restart
and put this script in the crontab file, though to be honest I can't
really see the point of doing this. You could have a cron job which
frequently checks if qmail is operational, and if it isn't, restarts it
or sends you an email or something.

Hope this cleared things up a little bit :-)

cheers
Fred

System Administrator wrote:

> can qmail live without an entry in /etc/inetd.conf on solaris 7?
>
> can it just be happy with the following in /etc/init.d/inetsvc:
>
> csh -f '/var/qmail/rc' &
> echo "qmail started..."
>
> /basit

Reply via email to