<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I have rectified this problem. Actually
I was not passing '-F' argument with 'mkssys' command, which were causing
problem. Thanks to Bazsi.</font>
<br>
<br><font size=2 face="sans-serif">Here is correct command I have used
to get rid of last problem:</font>
<br><font size=2 face="sans-serif">--------------------------------------------------------</font>
<br><font size=2 face="sans-serif">#mkssys -p /opt/soe/local/syslog_ng/sbin/syslog-ng
-s syslog_ng -u 0 -a &quot;-F -f /opt/soe/local/syslog_ng/etc/syslog-ng.conf
-p /var/run/syslog-ng.pid&quot; -G local</font>
<br>
<br><font size=2 face="sans-serif"># startsrc -s syslog_ng</font>
<br><font size=2 face="sans-serif">0513-059 The syslog_ng Subsystem has
been started. Subsystem PID is 548910.</font>
<br><font size=2 face="sans-serif"># lssrc -a |grep -i syslog_ng</font>
<br><font size=2 face="sans-serif">&nbsp;syslog_ng &nbsp; &nbsp; &nbsp;
&nbsp;local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;548910 &nbsp; active</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------</font>
<br><font size=2 face="sans-serif">Still a small probme is there with AIX
stopsrc command. Here is detail:</font>
<br><font size=2 face="sans-serif"># stopsrc -s syslog_ng</font>
<br><font size=2 face="sans-serif">0513-044 The syslog_ng Subsystem was
requested to stop.</font>
<br><font size=2 face="sans-serif"># lssrc -a |grep -i syslog-ng</font>
<br><font size=2 face="sans-serif">&nbsp;syslog_ng &nbsp; &nbsp; &nbsp;
&nbsp;local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;425986 &nbsp; stopping</font>
<br>
<br><font size=2 face="sans-serif">It hangs on this status. I had to execute
stopsrc with '-c' option to stop syslog_ng daemon.</font>
<br>
<br><font size=2 face="sans-serif">----------------------------------------</font>
<br><font size=2 face="sans-serif"># stopsrc &nbsp;-c &nbsp; -s syslog_ng</font>
<br><font size=2 face="sans-serif">0513-044 The syslog_ng Subsystem was
requested to stop.</font>
<br><font size=2 face="sans-serif"># lssrc -a |grep -i syslog</font>
<br><font size=2 face="sans-serif">&nbsp;syslogd &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;ras &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;inoperative</font>
<br><font size=2 face="sans-serif">&nbsp;syslog_ng &nbsp; &nbsp; &nbsp;
&nbsp;local &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;inoperative</font>
<br><font size=2 face="sans-serif">-----------------------------------------</font>
<br><font size=2 face="sans-serif">I donot know why it doesnot work with
'stopsrc -s syslog_ng' command. Do everytime I have to pass '-c' parameter
to stop syslog_ng daemon?</font>
<br>
<br>
<br><font size=2 face="sans-serif">With Regards,</font>
<br><font size=2 face="sans-serif">Chanchal Verma</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Chanchal Verma/GIS/CSC@CSC</b>
</font>
<br><font size=1 face="sans-serif">Sent by: syslog-ng-bounces@lists.balabit.hu</font>
<p><font size=1 face="sans-serif">01/23/2009 04:32 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;Syslog-ng users' and developers' mailing list&quot; &nbsp; &nbsp;
&nbsp; &nbsp;&lt;syslog-ng@lists.balabit.hu&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&quot;Syslog-ng users' and developers'
mailing list&quot; &lt;syslog-ng@lists.balabit.hu&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">IPADMIN@de.ibm.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [syslog-ng] Cannot find init.d.AIX
in contrib folder</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Hi,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Thanks for your valuable comments.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I have configured AIX service manager using 'mkssys' command. With this
I am able to start syslog-ng service daemon using 'startsrc' command successfully
(tested working), but not able to stop using 'stopsrc'. </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Here is detail info:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Here is command I used to register syslog_ng service to AIX Subsystem:</font><font size=3>
</font><font size=2 face="sans-serif"><br>
# mkssys -p /opt/soe/local/syslog_ng/sbin/syslog-ng -s syslog_ng -u 0 -a
&quot;-f /opt/soe/local/syslog_ng/etc/syslog-ng.conf -p /var/run/syslog-ng.pid&quot;
-G local</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
 startsrc -s syslog_ng</font><font size=3> </font><font size=2 face="sans-serif"><br>
0513-059 The syslog_ng Subsystem has been started. Subsystem PID is 254126.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
--------------------------</font><font size=3> </font><font size=2 face="sans-serif"><br>
# &nbsp;ps -ef |grep -i syslog-ng</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp;root 426102 573496 &nbsp; 0 15:56:11 &nbsp;pts/2 &nbsp;0:00
grep -i syslog-ng</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp;root 442612 &nbsp; &nbsp; &nbsp;1 &nbsp; 0 15:56:04 &nbsp;
&nbsp; &nbsp;- &nbsp;0:00 /opt/soe/local/syslog_ng/sbin/syslog-ng -f /opt/soe/local/syslog_ng/etc/syslog-ng.conf
-p /var/run/syslog-ng.pid</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Here above we can see that PID (442612) is different from Subsystem PID
(254126)</font><font size=3> </font><font size=2 face="sans-serif"><br>
-------------------------</font><font size=3> </font><font size=2 face="sans-serif"><br>
# lssrc -a |grep -i syslog</font><font size=3> </font><font size=2 face="sans-serif"><br>
 syslogd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ras &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;549028 &nbsp; active</font><font size=3> </font><font size=2 face="sans-serif"><br>
 syslog_ng &nbsp; &nbsp; &nbsp; &nbsp;local &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;inoperative</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Status of syslog_ng subsystem is still inoperative.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
-------------------------</font><font size=3> </font><font size=2 face="sans-serif"><br>
# stopsrc -s syslog_ng</font><font size=3> </font><font size=2 face="sans-serif"><br>
0513-004 The Subsystem or Group, syslog_ng, is currently inoperative.</font><font size=3>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
It is not able to store correct Subsystem PID and hence does not stop the
syslog_ng daemon</font><font size=3> </font><font size=2 face="sans-serif"><br>
-------------------------</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I am not sure if I have used correct command to register syslog_ng service
with AIX subsystem. Grateful if anybody can help me in configuring AIX
service manager for syslog_ng daemon.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Thanks a lot for helping me in crisis.</font><font size=3> <br>
<br>
</font><font size=2 face="sans-serif"><br>
With Regards,<br>
Chanchal Verma</font><font size=3><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=49%><font size=1 face="sans-serif"><b>CentralRegion IPAdmin &lt;IPADMIN@de.ibm.com&gt;</b>
<br>
Sent by: syslog-ng-bounces@lists.balabit.hu</font><font size=3> </font>
<p><font size=1 face="sans-serif">01/23/2009 01:58 PM</font><font size=3>
</font>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;Syslog-ng users' and developers' mailing list&quot; &nbsp; &nbsp;
&nbsp; &nbsp;&lt;syslog-ng@lists.balabit.hu&gt;</font></div></table>
<p>
<td width=50%>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">&quot;Syslog-ng users' and
developers' mailing list&quot; &lt;syslog-ng@lists.balabit.hu&gt;</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [syslog-ng] Cannot find init.d.AIX
in contrib folder</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
<br>
Network based services on AIX can be started in the config-file called</font><font size=3>
</font><font size=2 face="sans-serif"><br>
/etc/rc.tcpip</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
You &nbsp;can simply add the startup command there:</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
/usr/local/sbin/syslog-ng -f /etc/syslog-ng.conf</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Regards</font><font size=3> </font><font size=2 face="sans-serif"><br>
Werner</font><font size=3> </font>
<p><font size=1 color=#800080 face="sans-serif">Please respond to &quot;Syslog-ng
users' and developers' mailing list&quot; &nbsp; &nbsp; &nbsp; &nbsp;&lt;syslog-ng@lists.balabit.hu&gt;
</font>
<p><font size=1 color=#800080 face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;syslog-ng-bounces@lists.balabit.hu</font><font size=3> </font>
<p><font size=1 color=#800080 face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Syslog-ng users' and
developers' mailing list&quot; &lt;syslog-ng@lists.balabit.hu&gt;</font><font size=3>
</font><font size=1 color=#800080 face="sans-serif"><br>
cc: &nbsp; &nbsp; &nbsp; &nbsp; <br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=1 face="sans-serif">Re:
[syslog-ng] Cannot find init.d.AIX in contrib folder</font><font size=3>
<br>
</font><font size=2><tt><br>
<br>
On Thu, 2009-01-22 at 15:39 +0530, Chanchal Verma wrote:<br>
&gt; <br>
&gt; Hi, <br>
&gt; <br>
&gt; I am building syslog-ng-2.1.3 on AIX 5.1. I compiled it successfully<br>
&gt; and tool is working fine. I am in process to automate the start<br>
&gt; script. I cannot find init.d.AIX script in<br>
&gt; &lt;..&gt;/syslog-ng-2.1.3/contrib folder. It is available for other
OS<br>
&gt; (solaris, SunOS,HP-UX,RedHat..). <br>
&gt; <br>
&gt; The startup script which I have created is not 100% compliance with<br>
&gt; the AIX OS. Like syslog-ng is running on server and it is still<br>
&gt; showing status 'inoperative' as Subsystem status. <br>
&gt; <br>
&gt; I need startup script for AIX OS. <br>
&gt; <br>
&gt; Any help will be highly appreciated. <br>
<br>
If I remember correctly then AIX has a service manager and you can<br>
register syslog-ng directly with that without having a separate script.<br>
Just be sure to use the -F option for syslog-ng to avoid it going to the<br>
background.<br>
<br>
<br>
-- <br>
Bazsi<br>
<br>
<br>
______________________________________________________________________________<br>
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>
FAQ: http://www.campin.net/syslog-ng/faq.html</tt></font><font size=3><br>
</font><font size=2><tt><br>
______________________________________________________________________________<br>
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>
FAQ: http://www.campin.net/syslog-ng/faq.html<br>
______________________________________________________________________________<br>
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>
FAQ: http://www.campin.net/syslog-ng/faq.html<br>
<br>
</tt></font>
<p>