• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 23031
  • Last Modified:

RESTART sendmail service

I just want to restart sendmail service without restarting mail server?
0
raza
Asked:
raza
  • 3
1 Solution
 
razaAuthor Commented:
It must be very eassy like
sendmail start
sendmail stop

but I just want to make sure before I do that.
0
 
n0thingCommented:
Which OS are you running ??
If you changed the sendmail.cf configuration or
any mail related config files. You just need to send a kill -1 PID, where PID is the sendmail process ID to refresh it.
You don't need to stop it entirely and restart it. However if you need to do so. Please check the files under /etc/init.d and look for something like sendmail .. you could do a sendmail stop then
sendmail start.
Hope this helps.
0
 
razaAuthor Commented:
I tried to kill that sendmail process but it comes up again...
0
 
ishCommented:
The main purpose behind starting and stopping sendmail is to get it to read the config files again.

I use Solaris 2.5.1,

/etc/rc2.d/S88sendmail stop ; /etc/rc2.d/S88sendmail start

Daemon is down for portion of a second and users won't see a thing...

Find your UNIX's flavor of start/stop script nad try the same.
0
 
razaAuthor Commented:
Answer accepted
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now