Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

getting postfix tyo start automatically

UNIX for Dummies Questions & Answers

linux commands

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-20-2002   -   Original Discussion by kmgrady01
kmgrady01 kmgrady01 is offline
Registered User
Join Date: Nov 2001
Last Activity: 4 August 2003, 2:13 PM EDT
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Unix or Linux Question getting postfix tyo start automatically

Postfix has an initscript just like sendmail did so while logged in as root, simply type: ntsysv and select postfix.

The message above is from the Redhat postifx FAQ. I tried running ntsysv and postfix is not listed as a selection. I can start postfix manually without any problems, but I need it to start on boot. What other way is there to get this setup?

Sponsored Links
Old Unix and Linux 05-20-2002   -   Original Discussion by kmgrady01
killerserv's Unix or Linux Image
killerserv killerserv is offline Forum Advisor  
Registered User
Join Date: Dec 2000
Last Activity: 30 September 2015, 4:37 AM EDT
Location: Phoenix, AZ
Posts: 670
Thanks: 0
Thanked 3 Times in 3 Posts
When you increase the number of Postfix processes into the hundreds, the kernel will eventually run out of file handles; after that it is likely to run out of process slots.
The following information is kernel version dependent.

To set parameters at boot time on Linux systems that have /etc/sysctl.conf, add the following lines:

fs.file-max = 16384
kernel.threads-max = 2048

To set kernel parameters at run time, execute the following commands as root:

# echo 16384 > /proc/sys/fs/file-max
# echo 2048 > /proc/sys/kernel/threads-max

Hope this helps.
Sponsored Links
Old Unix and Linux 05-21-2002   -   Original Discussion by kmgrady01
LivinFree's Unix or Linux Image
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
Join Date: Jul 2001
Last Activity: 16 June 2011, 4:50 PM EDT
Location: Portland, OR, USA
Posts: 1,626
Thanks: 2
Thanked 15 Times in 13 Posts
Well, just using ntsysv on a Redhat system won't allow you to add new scripts to the init.d / rc*.d areas. It allows you to turn on / off existing scripts.

If you installed from an RPM, it should have added startup scripts for you, which you could turn off and on.

The easiest way would probably be to simply add some lines to the rc.local file, instead of writing a large new script to handle stop / restart / start / status conditions...

I don't remember exactly where it lie, but it's below the /etc directory somewhere... maybe in /etc/rc.d ?
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
start some services automatically bernard12 UNIX for Advanced & Expert Users 6 12-22-2010 02:10 PM
How do I Start postgre SQL automatically when boot my linux machine shiraz UNIX and Linux Applications 2 08-05-2010 11:55 PM
How can I automatically start a daemon at boot time. iamjayanth Ubuntu 3 03-10-2009 02:10 PM
Database can't start automatically on solaris Sachin Vaidya Solaris 2 02-27-2008 11:12 PM
How to start Oracle database automatically greg0320 Solaris 3 03-30-2005 05:46 PM

All times are GMT -4. The time now is 11:51 PM.