Unix start/stop/restart Sendmail (Sun,Linux,Aix,HP-UX)

** Myself
## Sleep for wait stopping sendmail or postfix
Sun Solaris
/etc/init.d/sendmail stop;sleep 10;/etc/init.d/sendmail start;
Linux
/etc/rc.d/sendmail stop;sleep 10;/etc/init.d/sendmail start;


--or postfix


service postfix restart;


AIX
stopsrc -s sendmail;sleep 10;startsrc -s sendmail -a "-bd -q30m";
HP-UX
/sbin/init.d/sendmail stop;sleep 10;/sbin/init.d/sendmail start;

0 comments:

Loading