Crinit -- Configurable Rootfs Init
|
Implementation of the Crinit main program. More...
#include <stdlib.h>
#include <unistd.h>
#include "common.h"
#include "globopt.h"
#include "logio.h"
#include "minsetup.h"
#include "notiserv.h"
#include "procdip.h"
#include "rtimcmd.h"
#include "version.h"
Macros | |
#define | CRINIT_DEFAULT_CONFIG_SERIES "/etc/crinit/default.series" |
Functions | |
static void | crinitPrintVersion (void) |
static void | crinitPrintUsage (const char *basename) |
static void | crinitTaskPrint (const crinitTask_t *t) |
int | main (int argc, char *argv[]) |
Implementation of the Crinit main program.
#define CRINIT_DEFAULT_CONFIG_SERIES "/etc/crinit/default.series" |
The default series file. Used if nothing is specified on command line.
|
static |
Print usage information for Crinit to stderr.
Includes version message via crinitPrintVersion().
basename | The name of this executable, according to argv[0]. |
|
static |
Prints a message indicating Crinit's version to stderr.
|
static |
Print out the contents of an crinitTask_t structure in a readable format using crinitDbgInfoPrint().
t | The task to be printed. |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function of crinit.
Will perform minimal system setup, fork from PID 1 (which remains as a zombie reaper process), construct a TaskDB from the given configuration and then spawn tasks as they are ready.