1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/autofs/autofs.initd
John Vogel bae515ff80 community/autofs: upgrade to 5.19 and take maintainership
Updated patches. Some were no longer necessary, some needed refresh. Also added one patch from gentoo and one from void.

Adjust the build configuration:

    the --with-confdir switch was pointing to the openrc conf.d, but what is expected is where automount will find the autofs.conf file
    added --enable-force-shutdown switch (possibly temporary, needs more testing)
    changed --sysconfigdir switch to the system sysconfdir, now that the --with-confdir is set as expected
    stop removing the autofs(5) manpage
    added etc/autofs/auto.master.d directory, which is referenced in the etc/autofs/auto.master file

Get logging working for automount: Because the initd script is using the supervise-daemon supervisor and starting automount with the -f (foreground) switch, all logging from automount is lost to stderr. Add supervise-daemon stderr logfile to remedy the situation.
2024-10-22 14:25:51 +00:00

15 lines
317 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
supervise_daemon_args="--stderr ${automount_logpath:-/var/log/automount.log}"
name="${RC_SVCNAME}"
description="Kernel-based automounter"
command=/usr/sbin/automount
command_args="$automount_opts"
command_args_foreground="-f"
depend() {
need net
after firewall
}