I am trying to start pmlogger on 3.6.10-1. I know that 3.6.10-2 has been
released, but the source tarball still makes 3.6.10-1.
The error I get is:
sudo /etc/ini.d/pmlogger start
/etc/init.d/pmlogger: line 100: /var/tmp/pcp.cT81ruA1f/pmcheck: No such
file or directory
I added a few debug lines in /etc/init.d/pmlogger to see what happens to
the temp directory. The directory seems to get deleted just after the
call to start_pmcheck. It is there just before the call.
Test Code
---------
grep -A2 -B3 "ls -la" /etc/init.d/pmlogger
_start_pmcheck()
{
echo "inside start_pmcheck"
ls -la /var/tmp
pmlogger_check $VFLAG >$tmp/pmcheck 2>&1
if [ -s $tmp/pmcheck ]
--
#
$ECHO $PCP_ECHO_N "Starting pmlogger ..." "$PCP_ECHO_C"
echo "call start_pmcheck"
ls -la /var/tmp
_start_pmcheck &
# success
--
if [ "$PMLOGGER_CTL" = on ]
then
echo "call start_pmlogger"
ls -la /var/tmp
_start_pmlogger
fi
Results
-------
sudo /etc/init.d/pmlogger start
call start_pmlogger
total 12
drwxrwxrwt. 3 root root 4096 Dec 23 08:55 .
drwxr-xr-x. 20 root root 4096 Dec 8 16:55 ..
drwx------. 2 root root 4096 Dec 23 08:55 pcp.cT81ruA1f
Starting pmlogger ... call start_pmcheck
total 12
drwxrwxrwt. 3 root root 4096 Dec 23 08:55 .
drwxr-xr-x. 20 root root 4096 Dec 8 16:55 ..
drwx------. 2 root root 4096 Dec 23 08:55 pcp.cT81ruA1f
inside start_pmcheck
[chandana@c63 rpm]$ total 8
drwxrwxrwt. 2 root root 4096 Dec 23 08:55 .
drwxr-xr-x. 20 root root 4096 Dec 8 16:55 ..
/etc/init.d/pmlogger: line 102: /var/tmp/pcp.cT81ruA1f/pmcheck: No such
file or directory
|