We are running Solaris 10 Update 9, syslog-ng 3.1.2 - version details at bottom of this msg.<br><br>I wanted the syslog-ng.pid file to be located in swap so it would be cleared after a reboot. <br>I also did not like the idea of creating the /usr/local/var/run directories, so:<br>
<br>I modified the /lib/svc/method file and then validated and imported the syslog-ng.xml file.<br>I stopped/disabled the syslog-ng process to make this change.<br><br>So now, I have 3 problems, but syslog-ng is running, and I can't imagine how:)).<br>
<br>1. I cannot find the 2 files syslog-ng.pid or syslog-ng.ctl files anywhere on the system.<br> I did a global find which searches the entire disk.<br><br>2. When syslog-ng started up, I got the following msg, and it is true:<br>
Error opening control socket, bind() failed; socket='/usr/local/var/syslog-ng.ctl', error='No such file or directory.<br><br>3. Before I made the change, a ps was showing:<br>root 5769 1 7 7 0 Apr 21 ? 0:00 /usr/local/sbin/syslog-ng<br>
root 5770 5769 5770 5770 13 Apr 21 ? 5618:33 /usr/local/sbin/syslog-ng<br><br>cat /usr/local/var/syslog-ng.pid<br>5770<br><br>As you can see, the PID is 5770. Shouldn't that be 5769??<br><br>******End of 3 questions ********<br>
<br>I have this same version of syslog-ng on another server, but I have not yet changed the<br>location of the syslog-ng.pid file. <br><br>The change I made was <br>FROM: <br>PIDFILE=$SYSLOGNG_PREFIX/var/run/syslog-ng.pid<br>
TO:<br>PIDFILE=/var/run/syslog-ng.pid<br><br>The config part of the method file is now:<br><br>#SYSLOGNG_PREFIX=/opt/syslog-ng<br>SYSLOGNG_PREFIX=/usr/local<br>SYSLOGNG="$SYSLOGNG_PREFIX/sbin/syslog-ng"<br>CONFFILE=$SYSLOGNG_PREFIX/etc/syslog-ng.conf<br>
PIDFILE=/var/run/syslog-ng.pid<br>SYSLOGPIDFILE=/var/run/syslog.pid<br>OPTIONS=<br>MAXWAIT=30<br><br>[root] # syslog-ng -V<br>syslog-ng 3.1.2<br>Installer-Version: 3.1.2<br>Revision: ssh+git://bazsi@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.1#master#8bf13c304b6ab5fc1a372b49d55c78370efe14ca<br>
Compile-Date: Oct 25 2010 23:56:18<br>Enable-Threads: off<br>Enable-Debug: off<br>Enable-GProf: off<br>Enable-Memtrace: off<br>Enable-Sun-STREAMS: on<br>Enable-Sun-Door: on<br>Enable-IPv6: on<br>Enable-Spoof-Source: on<br>
Enable-TCP-Wrapper: off<br>Enable-SSL: on<br>Enable-SQL: off<br>Enable-Linux-Caps: off<br>Enable-Pcre: on<br>[root@ecrsyslg00/usr/local]#<br><br>