aboutsummaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-03-18 01:03:28 -0300
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-10-19 10:56:54 +0200
commitc4b7a25b3781dd6ac645fef5cf8e0262d077da26 (patch)
treecbd7867698d889306414f303f157d8a0387be421 /src/librc/rc.h.in
parentb7069282021aec7b486a1123c8521ac4e67250c0 (diff)
librc: Allow user to override system-wide rc.conf
This change read a user version of rc.conf, to be located in `~/.config/rc.conf`. The user version is loaded first, so it has priority, thus overriding the system settings. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r--src/librc/rc.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in
index 02e7d53f..1ffeba5a 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -56,6 +56,10 @@ extern "C" {
#define RC_USER_RUNLEVELS_FOLDER "/runlevels"
#define RC_USER_RUNTIME_FOLDER "/openrc"
+
+#define RC_USER_CONF "/rc.conf"
+#define RC_USER_CONF_D "/rc.conf.d"
+
/*! Is openrc being ran in usermode?
* @return true if yes, otherwise false */
bool rc_is_user(void);