a restart helps, they appear for the day but disappear at the next
logrotate.
[root@stormgf1 ~]# rpm -qa|grep xrootd
xrootd-client-libs-4.1.1-1.slc6.x86_64
xrootd-server-4.1.1-1.slc6.x86_64
xrootd-selinux-4.1.1-1.slc6.noarch
xrootd-server-libs-4.1.1-1.slc6.x86_64
xrootd-cmstfc-1.4.3-3.osg.el6.x86_64
xrootd-4.1.1-1.slc6.x86_64
xrootd-libs-4.1.1-1.slc6.x86_64
xrootd-client-compat-4.1.1-1.slc6.x86_64
**:
[root@xrootd xrootd]# pwd
/var/log/xrootd
[root@xrootd xrootd]# ls -ltr|tail
-rw-r--r-- 1 xrootd xrootd 307507949 Mar 9 23:59
xrootd.log.20150309
-rw-r--r-- 1 xrootd xrootd 154876864 Mar 9 23:59
cmsd.log.20150309
-rw-r--r-- 1 xrootd xrootd 1267488 Mar 10 04:02
cmsd.log.3.gz
-rw-r--r-- 1 xrootd xrootd 3607781 Mar 10 04:02
xrootd.log.3.gz
-rw-r--r-- 1 xrootd xrootd 2738449 Mar 11 04:02
cmsd.log.2.gz
-rw-r--r-- 1 xrootd xrootd 7412756 Mar 11 04:02
xrootd.log.2.gz
drwxr-xr-x 2 xrootd xrootd 4096 Mar 12 04:02
cmsfr
drwxr-xr-x 2 xrootd xrootd 4096 Mar 12 04:02
cmsit
-rw-r--r-- 1 xrootd xrootd 3793752 Mar 12 04:02
cmsd.log.1.gz
-rw-r--r-- 1 xrootd xrootd 22607515 Mar 12 04:02
xrootd.log.1.gz
***:
[root@xrootd logrotate.d]# cat xrootd
/var/log/xrootd/*/*.log /var/log/xrootd/*.log
{
missingok
nomail
nocreate
rotate 100
notifempty
daily
compress
postrotate
PIPE=`dirname $1`/.`basename $1`
if [ -p $PIPE ]; then
/usr/bin/expect -c "set timeout 2; spawn
/bin/sh -c \"echo ping > $PIPE\"; expect timeout { exit 1 } eof { exit 0
}";
fi
endscript
}
--
Tommaso Boccali
INFN
Pisa