From c34fcd63f05044f9034b26c52f19c91e04668da7 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 20 Mar 2024 23:45:47 +0100 Subject: openrc: dynamic paths for user services add two api functions, `rc_service_dir` and `rc_sysconf_dir`, both are generate paths (and sub-paths) for resources, and meant to replace the hardcoded variables like `RC_SVCDIR`. those functions differ by dynamically switching between the system path, or the user path, set in their home folder or runtime directory. this lays out the intial support for user services. Signed-off-by: Anna (navi) Figueiredo Gomes --- src/mark_service/mark_service.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mark_service') diff --git a/src/mark_service/mark_service.c b/src/mark_service/mark_service.c index 7d4d9d97..36f32c28 100644 --- a/src/mark_service/mark_service.c +++ b/src/mark_service/mark_service.c @@ -37,6 +37,8 @@ int main(int argc, char **argv) /* size_t l; */ applet = basename_c(argv[0]); + if (rc_yesno(getenv("RC_USER_SERVICES"))) + rc_set_user(); if (argc > 1) service = argv[1]; else -- cgit v1.2.3