aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-11 15:00:16 +0000
committerRoy Marples <roy@marples.name>2008-03-11 15:00:16 +0000
commit40e12f6ba026af9c24d5c3d8e36512719ed5faee (patch)
tree06251344538a482a801e8750a3a0068ef5f5594a /src/rc/rc.c
parent568ec5f343912f4b63a2db769da68e842a239ae5 (diff)
RC_SERVICE now points to the service file, so daemons can recall us directly.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 9aa0a6c0..98b44cc8 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -560,7 +560,6 @@ static void run_script (const char *script)
eerrorx ("%s: failed to exec `%s'", applet, script);
}
-#ifndef PREFIX
static void do_coldplug (void)
{
size_t s;
@@ -661,7 +660,6 @@ static void do_coldplug (void)
printf (" %s", service);
printf ("%s\n", ecolor (ECOLOR_NORMAL));
}
-#endif
#include "_usage.h"
#define getoptstring "o:" getoptstring_COMMON
@@ -869,9 +867,9 @@ int main (int argc, char **argv)
}
#endif
-#ifndef PREFIX
+ /* Setup our coldplugged services now */
do_coldplug ();
-#endif
+
rc_plugin_run (RC_HOOK_RUNLEVEL_START_OUT, newlevel);
hook_out = 0;