================================================================================
Name
--------------------------------------------------------------------------------
fiss - a UNIX process no 1
Synopsis
--------------------------------------------------------------------------------
* fsvc when running as PID 0 (as init)
* fsvc <0|6> when running regulary to controll init
Controlling
--------------------------------------------------------------------------------
If
finit is invoked by any other user than
root, it failes.
* finit 0 halts the system
* finit 6 reboots the system
Description
--------------------------------------------------------------------------------
fiss must be run as Unix process no 1 if invoked without arguments and handles the boot process in user-land.
This happens in three stages:
Stage 1
--------------------------------------------------------------------------------
fiss runs
/etc/fiss/start and waits for it to terminate. The system's one time tasks are done here.
/etc/fiss/start has full control of
/dev/console to be able to start an emergency shell if the one time initialization tasks fail. If
/etc/fiss/start crashes,
finit will skip stage 2 and enter stage 3.
Stage 2
--------------------------------------------------------------------------------
fiss starts all services in
/etc/fiss/service.d which should not return until system shutdown; if it crashes, it will be restarted.
Stage 3
--------------------------------------------------------------------------------
If
fiss is told to shutdown the system, it terminates stage 2 if it is running, and runs
/etc/fiss/stop. The systems tasks to shutdown and possibly halt or reboot the system are done here. If stage 3 returns,
finit checks if the file
Signals
--------------------------------------------------------------------------------
finit only accepts signals in stage 2.
If
finit receives a CONT signal and the file
finit is told to shutdown the system.
if
finit receives an INT signal,
finit restarts the system.
See Also
--------------------------------------------------------------------------------
fiss-init(8), runsvdir(8), runsvchdir(8), sv(8), runsv(8), chpst(8), utmpset(8), svlogd(8)
Author
--------------------------------------------------------------------------------
Friedel Schön <derfriedmundschoen@gmail.com>