LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   starting sendmail at boot (when built from source!!!!) (https://www.linuxquestions.org/questions/linux-newbie-8/starting-sendmail-at-boot-when-built-from-source-204619/)

zepplin611 07-13-2004 03:53 PM

starting sendmail at boot (when built from source!!!!)
 
Greetings,

I just built sendmail: V8.12.11 from source...it runs just fine when I type:
/usr/sbin/sendmail -bd -q30m

Where (and how please!) do I place this command in a startup script (/etc/inittab???) to be sure
that when this machine is restarted, that sendmail will initiate....should it be in the
/etc/rc.d/rc.local????

i've tried using: chkconfig --level 35 sendmail on (but i get the following error:
error reading information on service sendmail: No such file or directory

I assume this is from the fact that sendmail is built from source....

Any help on this is greatly appreciated!!!!

zepp

netmask 07-13-2004 04:01 PM

Yes, placing the line "/usr/sbin/sendmail -bd -q30m" in /etc/rc.d/rc.local will in fact make it execute at boot.

Now, to place it in there, use your favorite text editor like vi, pico, joe, etc.

Or.. you could just execute this: # echo "/usr/sbin/sendmail -bd -q30m" >> /etc/rc.d/rc.local


All times are GMT -5. The time now is 12:13 PM.