Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-2000: "addebug on" command fails with syslog ng installed

Authentication Service ,  

12 April,16 at 10:57 AM


Getting error when trying to turn on debug log with addebug on.


syslog-ng is a syslogd replacement.  By default when starting up, just like syslogd writes pid to /var/run/, syslog-ng writes pid to /var/run/ but can be started with -p to specify an alternate pid file.  You would see from "ps -ef |grep syslog" if alternate pid file used.

[root@testsystem bin]# ps -ef | grep syslog
root     13790     1  0 Feb06 ?        00:00:36 /sbin/syslog-ng -p /var/run/
root     24659 21131  0 13:02 pts/2    00:00:00 grep syslog

addebug script checks for the existence of a syslog pid file in the /var/run directory. The script then checks for /etc/syslog.conf, or /etc/syslog-ng.conf depending on which pid file found in /var/run directory.  In situation where syslog-ng started with -p to an alternate pid file, search for matching conf file failed, an error message will display and addebug script exit without starting debug trace.


Use either one of the following as a workaround.
1) rename /var/run/ to /var/run/
2) start /sbin/syslog-ng without "-p /var/run/" option


This is due to command line option and will not be fixed in CentrifyDC