diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-02-21 12:40:53 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-02-21 12:40:53 +0200 |
commit | 6aac230ce3d21f1e71333ec3863c7ea1afd051c3 (patch) | |
tree | bddb95396d1eb12401db23946119fdac79becf43 /src/pies.h | |
parent | da6e295140fc1a1ef56db1c6f792e86793f7f2b1 (diff) | |
download | pies-6aac230ce3d21f1e71333ec3863c7ea1afd051c3.tar.gz pies-6aac230ce3d21f1e71333ec3863c7ea1afd051c3.tar.bz2 |
Provide fall-back entry in init mode
* src/sysvinit.c (inittab_parse): Provide default entry if
inittab cannot be read or if it defined no components.
* src/comp.c (component_list_is_empty): New function.
* src/pies.c (pies_read_config): Always return 0 in init mode.
(main): Use LOG_DAEMON in init mode.
* src/pies.h (component_list_is_empty): New proto.
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -396,6 +396,8 @@ void component_free (struct component *comp); | |||
396 | void component_ref_incr (struct component *comp); | 396 | void component_ref_incr (struct component *comp); |
397 | void component_ref_decr (struct component *comp); | 397 | void component_ref_decr (struct component *comp); |
398 | 398 | ||
399 | int component_list_is_empty (void); | ||
400 | |||
399 | void component_config_begin (void); | 401 | void component_config_begin (void); |
400 | void component_config_rollback (void); | 402 | void component_config_rollback (void); |
401 | void component_config_commit (void); | 403 | void component_config_commit (void); |