aboutsummaryrefslogtreecommitdiff
path: root/src/librc/rc.h.in
diff options
context:
space:
mode:
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 eaae25f1..96926a5a 100644
--- a/src/librc/rc.h.in
+++ b/src/librc/rc.h.in
@@ -36,7 +36,11 @@ __BEGIN_DECLS
#define RC_SYSCONFDIR "@SYSCONFDIR@"
#define RC_LIBDIR "@PREFIX@/@LIB@/rc"
#define RC_LIBEXECDIR "@LIBEXECDIR@"
+#ifdef __linux__
+#define RC_SVCDIR "@PREFIX@/run/openrc"
+#else
#define RC_SVCDIR RC_LIBEXECDIR "/init.d"
+#endif
#define RC_RUNLEVELDIR RC_SYSCONFDIR "/runlevels"
#define RC_INITDIR RC_SYSCONFDIR "/init.d"
#define RC_CONFDIR RC_SYSCONFDIR "/conf.d"