diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-04 14:22:24 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-01-04 14:22:24 +0200 |
commit | a9c18ad30ba6072ca460b2abc482374fb3c207b2 (patch) | |
tree | bd969853eaebe30e04fd8658d9ba323f6f6ff2ab /src/Makefile.am | |
parent | cf14c349fad774e477a80d1c5e6572f21f17ced1 (diff) | |
download | pies-a9c18ad30ba6072ca460b2abc482374fb3c207b2.tar.gz pies-a9c18ad30ba6072ca460b2abc482374fb3c207b2.tar.bz2 |
Implement runlevel transitions.
* src/sysvinit.c: New file.
* src/Makefile.am: Add new file.
* src/pies.c (initdefault, dfl_level): Move to sysvinit.c
(modetab): Add new modes.
(inittrans): Move to sysvinit.c
* src/pies.h (is_sysvinit): New macro.
(dfl_level): New extern.
(runlevel_match, inittrans, is_comp_wait): New protos.
* src/progman.c (progman_running_p): Take into account only
components. Use is_comp_wait to determine if the component
should be waited for.
(prog_start): Run sysvinit components only when started as
init process.
(runlevel_match): Move to sysvinit.c
(prog_start_prerequisites): Return immediately if
the component is disabled.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 44e0a8d..0fca105 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,6 +30,7 @@ pies_SOURCES = \ pies.c\ progman.c\ socket.c\ + sysvinit.c\ url.c\ userprivs.c |