diff options
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -145,10 +145,10 @@ enum pies_comp_mode /* ** Init-style components */ - + pies_mark_sysvinit, /* Start the process when the specified runlevel is entered and wait for its termination */ - pies_comp_wait, + pies_comp_wait = pies_mark_sysvinit, /* Execute the component once, when the specified runlevel is entered */ pies_comp_once, /* Execute the component during system boot. Ignore runlevel settings. */ @@ -183,6 +183,8 @@ enum pies_comp_mode pies_comp_respawn = pies_comp_exec, }; +#define is_sysvinit(m) ((m)>=pies_mark_sysvinit) + #define CF_DISABLED 0x001 /* The componenet is disabled */ #define CF_PRECIOUS 0x002 /* The component is precious (should not be disabled) */ @@ -274,6 +276,7 @@ extern char *qotdfile; extern int init_process; extern char *console_device; extern int initdefault; +extern int dfl_level; void register_prog (struct component *comp); int progman_running_p (void); @@ -445,5 +448,11 @@ struct inetd_builtin }; struct inetd_builtin *inetd_builtin_lookup (const char *service, int socktype); + +/* sysvinit.c */ +int runlevel_match (struct component *comp); +void inittrans (void); +int is_comp_wait (struct component *comp); + |