From: Subrata M. <su...@li...> - 2007-07-09 10:32:44
|
This is correct, and has been fixed. Regards-- Subrata naveen penumala wrote: > > 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". > > > > * *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-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 > Ltp...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list > |