View Single Post
  #2 (permalink)  
Old 01-07-2009, 04:09 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Postfix - Warn about bad directory/file ownership or permissions, and create missing directories
Code:
postfix check
Postfix - Enable verbose logging for debugging purposes
Code:
postfix -vv
OpenSSH SSHD server check for syntax error:
Code:
sshd -t
Lighttpd web server - check for syntax errors:
Code:
lighttpd -t  -f /etc/lighttpd/lighttpd.conf
nginx web server - check for syntax errors:
Code:
nginx -c /etc/nginx/nginx.conf -t
Apache show parsed settings for vhosts
Code:
 httpd -t -D DUMP_VHOSTS
FreeBSD / OpenBSD pf firewall syntax checking:
Code:
 pfctl -nf /etc/pf.conf
Check syntax error for TCPD (tcp wrapper config file)
Code:
tcpdchk
tcpdchk -v
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help

Last edited by nixcraft; 01-07-2009 at 04:17 PM.
Reply With Quote
The Following User Says Thank You to nixcraft For This Useful Post:
rockdalinux (02-07-2009)