syslogd Switches

A number of command-line switches are available for syslogd. We won't cover them all here, just a few select ones. See the man pages for the full list.

-d: run in debug mode. When used, syslogd will stay in the foreground and write out information to the console. Use this if you think your syslog.conf file isn't doing what you think it should. Be warned: you will get a lot of output from this mode!

-f: specify an alternate config file. The default is /etc/syslog.conf.

-h: normally, syslogd will not forward messages it receives from another host. Use this switch to override that behavior.

-r: enables receiving messages from an Internet domain socket. Prior to version 1.3, network messages were accepted by default; this switch is now required to enable the feature.

-v: print the version number, and exit.