LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to verify the configuration for services (https://www.linuxquestions.org/questions/linux-server-73/how-to-verify-the-configuration-for-services-749628/)

ZAMO 08-22-2009 11:01 PM

How to verify the configuration for services
 
Hi all,

How can I verify the following service configuration files/setup are ok with?(in RedHat)
httpd
sendmail
ldap
DHCP
DNS
SQUID

For example, I can use "testparm" to verify the my samba configuration . I want a similar kind of testing option for the above mentioned options.

vikas027 08-23-2009 01:12 AM

httpd -t is for apache (httpd).

chrism01 08-23-2009 11:55 PM

DNS/bind

service named configtest

EricTRA 08-24-2009 12:27 AM

Testing SQUID configuration is done with the 'client' that installs with SQUID installation. If you have Squid configured to listen on the standard port then you can just run:
Code:

client http://somesite.com
For more information on how to use the Squid client check out this page Testing Squid or run
Code:

client -h
Kind regards,

Eric

ZAMO 08-31-2009 07:39 AM

Thanks mate.,

anomie 08-31-2009 02:24 PM

For a squid.conf syntactical check: # squid -k parse


All times are GMT -5. The time now is 12:52 AM.