/usr/lib/news/bin/expirerm is in inn2 2.6.1-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #! /bin/bash
. /usr/lib/news/innshellvars
## $Id: expirerm.in 8572 2009-08-18 13:47:40Z iulius $
##
## Remove articles listed by expire -z.
## Remove all files specified in the input file.
MAIL="${MAILCMD} -s 'Problem removing expired files' ${NEWSMASTER}"
#RMPROC="xargs rm"
RMPROC="fastrm -e ${SPOOL}"
if [ -z "$1" ] ; then
echo "Expire called with zero list of files on `hostname`" \
| eval ${MAIL}
exit 0
fi
if [ ! -f $1 ] ; then
echo "Expire called with no files to expire on `hostname`" \
| eval ${MAIL}
exit 0
fi
eval "cd ${SPOOL} \
&& ${RMPROC} <$1 \
&& mv $1 ${MOST_LOGS}/expire.list"
if [ -f $1 ] ; then
echo "Expire had problems removing articles on `hostname`" \
| eval ${MAIL}
exit 1
fi
|