Hi,


           Please go through the following on LTP test tool problem. These
are the things I found in recent LTP release. Here we are using SuSE Linux.



*Problem:*



·        During Syslog test case execution all the tests passed, but in the
back ground "syslog-ng restart" process were still running.



*Analysis:*



   - Once I executed the syslog test case *(./syslog01),* I found a
     child processes "*syslog-ng restart*" running in the back
     ground. **

**

   - If we use the command "syslog-ng", it is creating background
     process. I tried the command "syslog-ng restart" in command prompt and I
     find the background process using the command "ps -ef | grep syslog".



   - [EMAIL PROTECTED] :..syscalls/syslog> ps -ef | grep syslog

                 root     13667      1  0 01:44 ?         00:00:00
/sbin/syslog-ng

                 root      13751     1  0 01:45 ?         00:00:00
syslog-ng restart

                 root      13760     1  0 01:45 ?         00:00:00
syslog-ng restart

                 root      13797     1  0 01:46 ?         00:00:00
syslog-ng restart

                 root      13808     1  0 01:46 ?         00:00:00
syslog-ng restart

                 root      13815  6932  0 01:46 pts/0     00:00:00 grep
syslog **



·        */etc/init.d/syslog *is the file which starts the system logging
daemons. In SuSE Linux the daemon is syslog-ng.



*Expected Code changes:*



·        Replace *syslog_cmd="syslog-ng"* to syslog_cmd="/etc/init.d/syslog"
in all the syslog  test cases for syslog-ng.





*My view is this:*



#check to see if syslogd or syslog-ng exists

       if [ -e /sbin/syslogd  ]

       then

           CONFIG_FILE="/etc/syslog.conf"

           syslog_cmd="/etc/init.d/syslog"      (This is for checking
syslogd) ex: redhat, fedora

       elif [ -e /sbin/syslog-ng ]

       then

           CONFIG_FILE="/etc/syslog-ng/syslog-ng.conf"

- -         syslog_cmd="syslog-ng"                (This is for checking
syslog-ng)  ex: Only SuSE

++        syslog_cmd="/etc/init.d/syslog"

       else

           tst_resm TBROK "syslogd or syslog-ng  no such command"

           status_flag=1

           cleanup
       fi


Thanks & Regards,
Naveen P
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to