[syslog-ng] syslog-ng 3.1.2 - Changing location of syslog-ng.pid file causes problems

Zeek Anow zeekstern at gmail.com
Mon Apr 25 20:34:25 CEST 2011


We are running Solaris 10 Update 9, syslog-ng 3.1.2 - version details at
bottom of this msg.

I wanted the syslog-ng.pid file to be located in swap so it would be cleared
after a reboot.
I also did not like the idea of creating the /usr/local/var/run directories,
so:

I modified the /lib/svc/method file and then validated and imported the
syslog-ng.xml file.
I stopped/disabled the syslog-ng process to make this change.

So now, I have 3 problems, but syslog-ng is running, and I can't imagine
how:)).

1. I cannot find the 2 files syslog-ng.pid or syslog-ng.ctl files anywhere
on the system.
   I did a global find which searches the entire disk.

2. When syslog-ng started up, I got the following msg, and it is true:
 Error opening control socket, bind() failed;
socket='/usr/local/var/syslog-ng.ctl', error='No such file or directory.

3. Before I made the change, a ps was showing:
root  5769     1     7     7   0   Apr 21 ?           0:00
/usr/local/sbin/syslog-ng
root  5770  5769  5770  5770  13   Apr 21 ?        5618:33
/usr/local/sbin/syslog-ng

cat /usr/local/var/syslog-ng.pid
5770

As you can see, the PID is 5770. Shouldn't that be 5769??

******End of 3 questions ********

I have this same version of syslog-ng on another server, but I have not yet
changed the
location of the syslog-ng.pid file.

The change I made was
FROM:
PIDFILE=$SYSLOGNG_PREFIX/var/run/syslog-ng.pid
TO:
PIDFILE=/var/run/syslog-ng.pid

The config part of the method file is now:

#SYSLOGNG_PREFIX=/opt/syslog-ng
SYSLOGNG_PREFIX=/usr/local
SYSLOGNG="$SYSLOGNG_PREFIX/sbin/syslog-ng"
CONFFILE=$SYSLOGNG_PREFIX/etc/syslog-ng.conf
PIDFILE=/var/run/syslog-ng.pid
SYSLOGPIDFILE=/var/run/syslog.pid
OPTIONS=
MAXWAIT=30

[root]  # syslog-ng -V
syslog-ng 3.1.2
Installer-Version: 3.1.2
Revision: ssh+git://bazsi@git.balabit
//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.1#master#8bf13c304b6ab5fc1a372b49d55c78370efe14ca
Compile-Date: Oct 25 2010 23:56:18
Enable-Threads: off
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-Sun-STREAMS: on
Enable-Sun-Door: on
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: off
Enable-SSL: on
Enable-SQL: off
Enable-Linux-Caps: off
Enable-Pcre: on
[root at ecrsyslg00/usr/local]#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20110425/f0d2181a/attachment-0001.htm 


More information about the syslog-ng mailing list