I am constantly getting hung up at "Updating manpage index" and "Purging old manpage index entries" which seem to be the hooks /usr/share/libalpm/hooks/man-db.hook and man-db-purge.hook.
I folowed the discussion here: https://archlinuxarm.org/forum/viewtopic.php?f=60&t=10474
If there is a better way, I am willing to try it but this is what I have pulled together from that thread:
$this->bbcode_second_pass_code('', 'As root (sudo)
mkdir /etc/pacman.d/hooks
ln -s /dev/null /etc/pacman.d/hooks/man-db.hook
ln -s /dev/null /etc/pacman.d/hooks/texinfo-install.hook
cd /etc/systemd/system/
Create (touch/nano) these files and verify with
more *-index*
::::::::::::::
manpage-index.service
::::::::::::::
[Unit]
Description=Run manpage indexer
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'mkdir -p /var/cache/man; exec mandb --quiet --no-purge'
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
::::::::::::::
manpage-index.timer
::::::::::::::
[Unit]
Description=Run manpage indexer daily
[Timer]
OnCalendar=*-*-* 01:30:00
Persistent=true
::::::::::::::
texinfo-index.service
::::::::::::::
[Unit]
Description=Run texinfo updater
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'for f in /usr/share/info/*.gz; do install-info "$f" /usr/share/info/dir 2> /dev/null; done'
Nice=19
IOSchedulingClass=best-effort
IOSchedulingPriority=7
::::::::::::::
texinfo-index.timer
::::::::::::::
[Unit]
Description=Run texinfo updater daily
[Timer]
OnCalendar=*-*-* 02:30:00
Persistent=true
Refresh systemctl and start timers
systemctl daemon-reload
systemctl start manpage-index.timer
systemctl start texinfo-index.timer
Verify with
systemctl list-timers')
but it doesn't seem to work after I reboot. I check and the new timers are no longer listed when i run $this->bbcode_second_pass_code('', 'systemctl list-timers')
i don't want to leave them disabled without having these tasks scheduled. any advice?