## **************************************************************************
## For copyright and licensing terms, see the file named COPYING.
## **************************************************************************

[Unit]
Description=Initialise the dynamic loader database
DefaultDependencies=false
Before=extra-shared-libraries.target
After=local-fs.target
Wants=local-fs.target

[Service]
Type=oneshot
# The import procedure is expected to have populated this directory with paths_elf, paths_aout, and paths_elf32.
# paths, paths_32, and paths_aout can be used to add paths to what are converted by the import procedure.
EnvironmentDirectory=env
ExecStart=%p -elf -v ${rc_paths_elf} ${paths} /etc/ld-elf.so.conf
ExecStart=%p -32 -v ${rc_paths_elf32} ${paths_32} /etc/ld-elf32.so.conf
ExecStart=%p -aout -v ${rc_paths_aout} ${paths_aout} /etc/ld.so.conf
# This is a one-shot service that can be re-triggered by starting it again.
Restart=no

[Install]
StoppedBy=shutdown.target
WantedBy=sysinit.target
