diff options
author | Roy Marples <roy@marples.name> | 2009-05-29 14:15:12 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-05-29 14:15:12 +0100 |
commit | 83e82c452e89bf27de2a7b01bc2356c9050b2a18 (patch) | |
tree | a4f8843c7c02a6b51abb06a16f0a9a6665facc71 /src/librc/librc-depend.c | |
parent | 9c5faf231ccf50695270034ab63f747fa2bef1d7 (diff) | |
parent | a518d34549fd80268e9c70d2300808b63c54825c (diff) |
Merge branch 'master' of ssh://roy.marples.name/var/git/openrc
Diffstat (limited to 'src/librc/librc-depend.c')
-rw-r--r-- | src/librc/librc-depend.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 36d8782e..97421fab 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -31,7 +31,7 @@ #include "librc.h" -#define GENDEP RC_LIBDIR "/sh/gendepends.sh" +#define GENDEP RC_LIBEXECDIR "/sh/gendepends.sh" #define RC_DEPCONFIG RC_SVCDIR "/depconfig" @@ -647,6 +647,7 @@ static const DEPPAIR deppairs[] = { static const char *const depdirs[] = { + RC_SVCDIR, RC_SVCDIR "/starting", RC_SVCDIR "/started", RC_SVCDIR "/stopping", @@ -742,10 +743,10 @@ rc_deptree_update(void) bool retval = true; const char *sys = rc_sys(); - /* Some init scripts need RC_LIBDIR to source stuff + /* Some init scripts need RC_LIBEXECDIR to source stuff Ideally we should be setting our full env instead */ - if (!getenv("RC_LIBDIR")) - setenv("RC_LIBDIR", RC_LIBDIR, 0); + if (!getenv("RC_LIBEXECDIR")) + setenv("RC_LIBEXECDIR", RC_LIBEXECDIR, 0); /* Phase 1 - source all init scripts and print dependencies */ if (!(fp = popen(GENDEP, "r"))) |