/usr/share/dhelp/index-deferred is in dhelp 0.6.20ubuntu1.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/bin/sh
# Perform deffered indexing of documents registered during the last dpkg-run.
# This script is meant to be called as a dpkg post-invoke trigger.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA.
TODAY=`date '+%F'`
LOGDIR=/var/lib/dhelp/tmp
if [ "X${1}" = "X-f" ] || [ "X${1}" = "X--full" ]; then
INDEX_CMD='/etc/cron.weekly/dhelp'
else
INDEX_CMD='/usr/sbin/dhelp_parse -i'
fi
BINCMD=`echo "${INDEX_CMD}" | awk '{print $1}'`
if [ ! -x ${BINCMD} ]; then
echo "Error: ${BINCMD} is missing or is not executable"
exit 1
fi
DHLOG=`mktemp --tmpdir=${LOGDIR} ${TODAY}.index-log.XXXXXXXX`
if [ ! -f ${DHLOG} ]; then
echo "Error: unable to create temporary log file in ${LOGDIR}"
exit 2
fi
# Indexing may last a large amount of time, which may be (depending
# on how dpkg was called) larger than the timespan of the controlling
# process/terminal. Use nohup to account for this possibility.
</dev/null >${DHLOG} 2>${DHLOG} nohup nice -n10 ${INDEX_CMD} &
|