<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your valuable comments.</font>
<br><font size=2 face="sans-serif">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>
<br>
<br><font size=2 face="sans-serif">Here is detail info:</font>
<br>
<br><font size=2 face="sans-serif">Here is command I used to register syslog_ng
service to AIX Subsystem:</font>
<br><font size=2 face="sans-serif"># mkssys -p /opt/soe/local/syslog_ng/sbin/syslog-ng
-s syslog_ng -u 0 -a "-f /opt/soe/local/syslog_ng/etc/syslog-ng.conf
-p /var/run/syslog-ng.pid" -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 254126.</font>
<br><font size=2 face="sans-serif">--------------------------</font>
<br><font size=2 face="sans-serif"># ps -ef |grep -i syslog-ng</font>
<br><font size=2 face="sans-serif"> root 426102 573496
0 15:56:11 pts/2 0:00 grep -i syslog-ng</font>
<br><font size=2 face="sans-serif"> root 442612
1 0 15:56:04 - 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>
<br>
<br><font size=2 face="sans-serif">Here above we can see that PID (442612)
is different from Subsystem PID (254126)</font>
<br><font size=2 face="sans-serif">-------------------------</font>
<br><font size=2 face="sans-serif"># lssrc -a |grep -i syslog</font>
<br><font size=2 face="sans-serif"> syslogd
ras 549028
active</font>
<br><font size=2 face="sans-serif"> syslog_ng
local
inoperative</font>
<br>
<br><font size=2 face="sans-serif">Status of syslog_ng subsystem is still
inoperative.</font>
<br><font size=2 face="sans-serif">-------------------------</font>
<br><font size=2 face="sans-serif"># stopsrc -s syslog_ng</font>
<br><font size=2 face="sans-serif">0513-004 The Subsystem or Group, syslog_ng,
is currently inoperative.</font>
<br>
<br>
<br><font size=2 face="sans-serif">It is not able to store correct Subsystem
PID and hence does not stop the syslog_ng daemon</font>
<br><font size=2 face="sans-serif">-------------------------</font>
<br>
<br><font size=2 face="sans-serif">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>
<br>
<br><font size=2 face="sans-serif">Thanks a lot for helping me in crisis.</font>
<br>
<br>
<br><font size=2 face="sans-serif">With Regards,<br>
Chanchal Verma<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>CentralRegion IPAdmin <IPADMIN@de.ibm.com></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 01:58 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
"Syslog-ng users' and developers' mailing list"
<syslog-ng@lists.balabit.hu></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">"Syslog-ng users' and developers'
mailing list" <syslog-ng@lists.balabit.hu></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>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><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> <br>
</font><font size=2 face="sans-serif"><br>
You can simply add the startup command there:</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
/usr/local/sbin/syslog-ng -f /etc/syslog-ng.conf</font><font size=3> <br>
</font><font size=2 face="sans-serif"><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 "Syslog-ng
users' and developers' mailing list" <syslog-ng@lists.balabit.hu>
</font>
<p><font size=1 color=#800080 face="sans-serif">Sent by:
syslog-ng-bounces@lists.balabit.hu</font><font size=3> </font>
<p><font size=1 color=#800080 face="sans-serif">To:
</font><font size=1 face="sans-serif">"Syslog-ng users' and
developers' mailing list" <syslog-ng@lists.balabit.hu></font><font size=3>
</font><font size=1 color=#800080 face="sans-serif"><br>
cc: <br>
Subject: </font><font size=1 face="sans-serif">Re:
[syslog-ng] Cannot find init.d.AIX in contrib folder</font><font size=3>
<br>
<br>
</font><font size=2><tt><br>
On Thu, 2009-01-22 at 15:39 +0530, Chanchal Verma wrote:<br>
> <br>
> Hi, <br>
> <br>
> I am building syslog-ng-2.1.3 on AIX 5.1. I compiled it successfully<br>
> and tool is working fine. I am in process to automate the start<br>
> script. I cannot find init.d.AIX script in<br>
> <..>/syslog-ng-2.1.3/contrib folder. It is available for other
OS<br>
> (solaris, SunOS,HP-UX,RedHat..). <br>
> <br>
> The startup script which I have created is not 100% compliance with<br>
> the AIX OS. Like syslog-ng is running on server and it is still<br>
> showing status 'inoperative' as Subsystem status. <br>
> <br>
> I need startup script for AIX OS. <br>
> <br>
> 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<br>
</tt></font><font size=3><br>
</font><font size=2><tt>______________________________________________________________________________<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>