From: naveen p. <nav...@gm...> - 2007-07-04 05:45:31
|
Hi, Please go through the following on LTP test suite. These are th= e things I found in recent LTP release. Here we are using SuSE Linux. *Problem:* =B7 During Syslog test case execution all the tests passed, but in t= he 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 an= d I find the background process using the command "ps -ef | grep syslog". - *root@rv-mariner50 :..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-n= g restart root 13760 1 0 01:45 ? 00:00:00 syslog-n= g restart root 13797 1 0 01:46 ? 00:00:00 syslog-n= g restart root 13808 1 0 01:46 ? 00:00:00 syslog-n= g restart root 13815 6932 0 01:46 pts/0 00:00:00 grep syslog ** =B7 */etc/init.d/syslog *is the file which starts the system logging daemons. In SuSE Linux the daemon is syslog-ng. *Expected Code changes:* =B7 Replace *syslog_cmd=3D"syslog-ng"* to syslog_cmd=3D"/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=3D"/etc/syslog.conf" syslog_cmd=3D"/etc/init.d/syslog" (This is for checking syslogd) ex: redhat, fedora elif [ -e /sbin/syslog-ng ] then CONFIG_FILE=3D"/etc/syslog-ng/syslog-ng.conf" - - syslog_cmd=3D"syslog-ng" (This is for checking syslog-ng) ex: Only SuSE ++ syslog_cmd=3D"/etc/init.d/syslog" else tst_resm TBROK "syslogd or syslog-ng no such command" status_flag=3D1 cleanup fi Thanks & Regards, Naveen P |