Репозитории ALT
5.1: | 1.6f-alt11 |
4.1: | 1.6f-alt1 |
4.0: | 1.5m2-alt4 |
+backports: | 1.6f-alt5.M40.1 |
3.0: | 1.5m2-alt3 |
Группа :: Система/Основа
Пакет: man
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
[ -z "$DURING_INSTALL" ] || exit 0
lockdir=/var/lock/makewhatis/lockdir
exit_handler()
{
local rc=$?
trap - EXIT
rm -rf -- "$lockdir"
exit $rc
}
pidfile="$lockdir/pid"
if ! mkdir -m700 -- "$lockdir"; then
[ ! -s "$pidfile" ] ||
echo "makewhatis is already running, pid=`cat "$pidfile"`"
exit 1
fi
trap exit_handler SIGHUP SIGPIPE SIGINT SIGQUIT SIGTERM EXIT
echo $$ >"$pidfile"
su -l cacheman -s /bin/sh -c /usr/sbin/makewhatis