580713a1c0
- Add man-db-create.service to fill /var/cache/man at bootup if the directory is empty (required by FHS and for transactional updates). - Don't fill /var/cache/man if it does not exist yet (needed for transactional updates). - We don't need to package /var/cache/man, systemd-tmpfiles is creating it already for us. OBS-URL: https://build.opensuse.org/request/show/555099 OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=84
18 lines
354 B
Desktop File
18 lines
354 B
Desktop File
[Unit]
|
|
Description=Initialize /var/cache/man
|
|
DefaultDependencies=no
|
|
Wants=local-fs.target
|
|
After=local-fs.target
|
|
After=systemd-tmpfiles-setup.service
|
|
ConditionPathExists=/var/cache/man
|
|
ConditionPathExists=!/var/cache/man/index.db
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/mandb --quiet --create
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|