aboutsummaryrefslogtreecommitdiff
path: root/sh/openrc-run.sh.in
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-06-15 16:14:00 -0300
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-10-19 10:56:54 +0200
commit8d697f662cf2e59930f6b79726502cc016cec325 (patch)
tree0ec15b21f9dcc7de6baafeeabc2c1eabdc82f4ab /sh/openrc-run.sh.in
parentb7caeb07a5f6e9adae326c51367cd522a05fbdac (diff)
openrc-run.sh: save and load variables on default start
temporary system for testing, it's gonna store any environment variables defined in export_vars="", and subsequent services will load them. ideally we only want to load the variables saved by services we depend on, so that would change later. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'sh/openrc-run.sh.in')
-rw-r--r--sh/openrc-run.sh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in
index ed565a46..12a4c6eb 100644
--- a/sh/openrc-run.sh.in
+++ b/sh/openrc-run.sh.in
@@ -149,6 +149,11 @@ _status()
# supervisor modules
default_start()
{
+ if yesno "${RC_USER_SERVICES}"; then
+ load_variables
+ save_variables
+ fi
+
local func=ssd_start
case "$supervisor" in
runit) func=runit_start ;;