[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting Sendmail



On Tue, May 20, 2003 at 06:20:45PM +0200, Alexander Hall wrote:
> From: "Mike Grover" <mike_(_at_)_lexinet_(_dot_)_net>
> > Is there a script to start,stop, and restart sendmail?
> >
> > I can restart it with "kill -HUP xxxx"
> > But How do I start it like the system does so it run's under the
> correst
> > account?
> >
> >         Thanx, mike
> 
> >
> 
> Just kill it without -HUP.
> 
> Then, `grep -C sendmail /etc/rc.conf /etc/rc` should give you a clue as
> how to start it.
> 
> Basically, just look for 'sendmail_flags' in /etc/rc.conf and
> then start sendmail the same way it is done in /etc/rc...
> 
> something like;
> /usr/sbin/sendmail -L sm-mta -bd -q30m &

A little shell script I made does exactly this (look into /etc/rc.conf and
start appropriately). You can download it under
http://www.todesplanet.de/unix/

> (not sure if the & at the end is needed)

It is not.

-- 
Free your mind and your ass will follow -- http://www.funkaffair.de