allow configuration of man-db-cache-update service through sysconfig
- resolves: #1514909
This commit is contained in:
parent
71f8f47846
commit
b9daeebba2
@ -8,6 +8,7 @@ JobTimeoutSec=15min
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
TimeoutStartSec=infinity
|
TimeoutStartSec=infinity
|
||||||
Environment=MAN_NO_LOCALE_WARNING=1
|
Environment=MAN_NO_LOCALE_WARNING=1
|
||||||
ExecStart=/usr/bin/mandb
|
EnvironmentFile=/etc/sysconfig/man-db
|
||||||
|
ExecStart=/bin/sh -c '[ "$SERVICE" != "no" ] && /usr/bin/mandb $OPTS'
|
||||||
Nice=19
|
Nice=19
|
||||||
IOWeight=20
|
IOWeight=20
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
Summary: Tools for searching and reading man pages
|
Summary: Tools for searching and reading man pages
|
||||||
Name: man-db
|
Name: man-db
|
||||||
Version: 2.7.6.1
|
Version: 2.7.6.1
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
# GPLv2+ .. man-db
|
# GPLv2+ .. man-db
|
||||||
# GPLv3+ .. gnulib
|
# GPLv3+ .. gnulib
|
||||||
License: GPLv2+ and GPLv3+
|
License: GPLv2+ and GPLv3+
|
||||||
@ -128,6 +128,7 @@ fi
|
|||||||
%license docs/COPYING
|
%license docs/COPYING
|
||||||
%doc README man-db-manual.txt man-db-manual.ps ChangeLog NEWS
|
%doc README man-db-manual.txt man-db-manual.ps ChangeLog NEWS
|
||||||
%config(noreplace) %{_sysconfdir}/man_db.conf
|
%config(noreplace) %{_sysconfdir}/man_db.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
||||||
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
|
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
|
||||||
%{_unitdir}/man-db-cache-update.service
|
%{_unitdir}/man-db-cache-update.service
|
||||||
%{_sbindir}/accessdb
|
%{_sbindir}/accessdb
|
||||||
@ -171,9 +172,12 @@ fi
|
|||||||
|
|
||||||
%files cron
|
%files cron
|
||||||
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
|
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 21 2017 Nikola Forró <nforro@redhat.com> - 2.7.6.1-9
|
||||||
|
- allow configuration of man-db-cache-update service through sysconfig
|
||||||
|
resolves: #1514909
|
||||||
|
|
||||||
* Tue Nov 21 2017 Nikola Forró <nforro@redhat.com> - 2.7.6.1-8
|
* Tue Nov 21 2017 Nikola Forró <nforro@redhat.com> - 2.7.6.1-8
|
||||||
- set group of /var/cache/man to root and drop setgid bit
|
- set group of /var/cache/man to root and drop setgid bit
|
||||||
resolves: #1515823
|
resolves: #1515823
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
# Set to no to disable daily man-db update by /etc/cron.daily/man-db.cron
|
# Set this to "no" to disable man-db update triggered by installation
|
||||||
|
# of any package containing manual pages
|
||||||
|
SERVICE="yes"
|
||||||
|
|
||||||
|
# Set this to "no" to disable daily man-db update run by
|
||||||
|
# /etc/cron.daily/man-db.cron
|
||||||
CRON="yes"
|
CRON="yes"
|
||||||
|
|
||||||
# Options used by mandb in /etc/cron.daily/man-db.cron,
|
# Options used by mandb, we use "-q" as default, too much noise without it
|
||||||
# we use -q as default, too much noise without.
|
|
||||||
OPTS="-q"
|
OPTS="-q"
|
||||||
|
Loading…
Reference in New Issue
Block a user