path: root/doc
diff options
authorSergey Poznyakoff <gray@gnu.org>2016-02-13 21:27:11 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-02-13 21:46:32 +0200
commitc9581808b72ff25623c87cf49c471ce7f017985d (patch)
tree3b6c7143eec966561e24c05ffb87e1d55b4acf58 /doc
parent3c774556e22cd30c42304614e14218a767e4d700 (diff)
Stop disabled components when switching runlevels.
* src/prog.h (status_enabled, status_disabled): Remove. (status_stopped, status_running): New modes. All uses updated. * src/comp.c (component_finish): Disable ondemand component by default. * src/ctl.c (json_object_set_bool): New function. (pies_status_str): Update. (prog_serialize): Set "disabled" attribute. (fun_stop, fun_start): Use CF_DISABLED flag. (res_runlevel): Schedule ACTION_RELOAD. * src/pies.h (json_object_set_bool): New proto. * src/piesctl.c (status_trans): Reflect changes in modes. (print_comp): Check the "disabled" attribute. * src/progman.c (register_prog0) (prog_open_socket,prog_start,prog_stop) (progman_wake_sleeping) (prog_start_prerequisites) (react, progman_cleanup) (progman_stop_component): Update. (no_children_left): Fix. * src/sysvinit.c (enablecomp): Make CF_DISABLED flag persist for ondemand components. (runlevel_setup_prog): Use CF_DISABLED flag. (inittrans): Stop inactivated processes. * doc/pies.texi: Update.
Diffstat (limited to 'doc')
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/pies.texi b/doc/pies.texi
index 46bd837..39a2694 100644
--- a/doc/pies.texi
+++ b/doc/pies.texi
@@ -2437,24 +2437,37 @@ describes the type:
2437 2437
2438@multitable @columnfractions 0.2 0.7 2438@multitable @columnfractions 0.2 0.7
2439@headitem Flag @tab Meaning 2439@headitem Flag @tab Meaning
2440@item 3 @tab SysV init @samp{ctrlaltdel} component
2440@item A @tab Accept-style component 2441@item A @tab Accept-style component
2442@item B @tab SysV init @samp{boot} component
2441@item C @tab Init-style component 2443@item C @tab Init-style component
2444@item c @tab SysV init @samp{once} component
2445@item D @tab SysV init @samp{ondemand} component
2442@item E @tab Command being executed 2446@item E @tab Command being executed
2447@item F @tab SysV init @samp{powerfail} component
2448@item f @tab SysV init @samp{powerwait} component
2443@item I @tab Inetd-style component 2449@item I @tab Inetd-style component
2450@item i @tab SysV init @samp{sysinit} component
2451@item k @tab SysV init @samp{kbrequest} component
2452@item n @tab SysV init @samp{powerfailnow} component
2453@item o @tab SysV init @samp{powerokwait} component
2444@item P @tab Pass-style component 2454@item P @tab Pass-style component
2445@item R @tab Output redirector 2455@item R @tab Output redirector
2456@item W @tab SysV init @samp{wait} component
2457@item w @tab SysV init @samp{bootwait} component
2446@end multitable 2458@end multitable
2447 2459
2448 The second flag is meaningful only for components, i.e. if the first 2460 The second flag is meaningful only for components. Its values are:
2449flag is one of @samp{CAIP}. Its values are:
2450 2461
2451@multitable @columnfractions 0.2 0.7 2462@multitable @columnfractions 0.2 0.7
2452@headitem Flag @tab Meaning 2463@headitem Flag @tab Meaning
2453@item D @tab Disabled component 2464@item - @tab Disabled component
2465@item f @tab A finished @samp{once} component
2454@item L @tab Inetd listener 2466@item L @tab Inetd listener
2455@item R @tab Running component 2467@item R @tab Running component
2456@item S @tab Component is stopping 2468@item S @tab Component is stopping
2457@item s @tab Component is sleeping 2469@item s @tab Component is sleeping
2470@item T @tab Component is stopped
2458@end multitable 2471@end multitable
2459 2472
2460 The next column lists the PID (for running components) or socket address 2473 The next column lists the PID (for running components) or socket address

Return to:

Send suggestions and report system problems to the System administrator.