aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-14 17:41:47 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 03:15:17 +0200
commitf03a640f6af7cef470c452970f6031d41a61f227 (patch)
tree54c6a4042277ed02032c9be270302adbe5906a9a /sh
parentad169aa7edc88091ff7bba3b66040873c28f6d81 (diff)
openrc-run: allow multiplexed symlinks to live outside init.d
use the realpath of the target to locate which sysconf dir it's in, using it as a base to load the config file. the service path is then normalized from the symlink without dereferencing it. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'sh')
-rw-r--r--sh/openrc-run.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in
index cd81f3fb..b1df1fd5 100644
--- a/sh/openrc-run.sh.in
+++ b/sh/openrc-run.sh.in
@@ -220,7 +220,7 @@ if [ -d "@SYSCONFDIR@/rc.conf.d" ]; then
done
fi
-_conf_d=${RC_SERVICE%/*}/../conf.d
+_conf_d="${RC_SYSCONF_DIR}/conf.d"
# If we're net.eth0 or openvpn.work then load net or openvpn config
_c=${RC_SVCNAME%%.*}
if [ -n "$_c" -a "$_c" != "$RC_SVCNAME" ]; then