logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

sinit.8 (1387B)


  1. .Dd December 4, 2014
  2. .Dt SINIT 8 sinit\-VERSION
  3. .Os
  4. .Sh NAME
  5. .Nm sinit
  6. .Nd simple init
  7. .Sh DESCRIPTION
  8. .Nm
  9. is a simple init. It is configured by modifying
  10. .Dq config.h
  11. and recompiling the code.
  12. .Ss Init sequence
  13. By default
  14. .Nm
  15. will execute
  16. .Dq /bin/rc.init .
  17. You can chain your init scripts together at that point to allow for
  18. single-user and multi-user operation.
  19. .Ss Signal handling
  20. .Nm
  21. will respond to the following signals:
  22. .Bl -tag -width xxxxxxxx
  23. .It USR1
  24. Default action is to initiate the shutdown sequence by
  25. executing
  26. .Dq /bin/rc.shutdown poweroff .
  27. .It INT
  28. Default action is to initiate the reboot sequence by
  29. executing
  30. .Dq /bin/rc.shutdown reboot .
  31. .It CHLD
  32. Reap children.
  33. .El
  34. .Ss General considerations
  35. Running the
  36. .Dq rc.shutdown
  37. script directly is not recommended. If any
  38. process in your session has stale filesystem references then it is
  39. likely your init scripts will fail to unmount the filesystem cleanly.
  40. It is recommended to signal
  41. .Nm
  42. via a wrapper script.
  43. .Pp
  44. .Nm
  45. does not clear utmp records. The version of
  46. .Xr getty 8
  47. in ubase clears the utmp entries on the specified tty before it
  48. spawns the given program, usually
  49. .Xr login 1 .
  50. .Pp
  51. .Nm
  52. does not restart
  53. .Xr getty 8
  54. or interact with it in any way. You will need an external
  55. respawning mechanism to restart it.
  56. .Sh SEE ALSO
  57. .Xr getty 8 ,
  58. .Xr killall5 8
  59. .Sh AUTHORS
  60. .An Dimitris Papastamos Aq Mt sin@2f30.org .