shutdown.8.m4 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. changequote(`@@@',`$$$')dnl
  2. @@@.TH SHUTDOWN "8" "$$$MONTH YEAR@@@" "Dinit $$$VERSION@@@" "Dinit \- service management system"
  3. .SH NAME
  4. shutdown, halt, poweroff, reboot \- system shutdown
  5. .\"
  6. .SH SYNOPSIS
  7. .\"
  8. .B shutdown
  9. [\fB\-r\fR|\fB\-h\fR|\fB\-p\fR] [\fB\-\-use\-passed\-cfd\fR]
  10. [\fB\-\-system\fR]
  11. .br
  12. \fBhalt\fR [\fIoptions...\fR]
  13. .br
  14. \fBpoweroff\fR [\fIoptions...\fR]
  15. .br
  16. \fBreboot\fR [\fIoptions...\fR]
  17. .\"
  18. .SH DESCRIPTION
  19. .\"
  20. This manual page is for the shutdown utility included with the \fBDinit\fR
  21. service manager package. See \fBdinit\fR(8).
  22. The shutdown, reboot, poweroff and halt commands can be used to instruct the
  23. service manager daemon to perform a service rollback and then to shutdown the
  24. system. They can also perform shutdown directly, without service rollback.
  25. Note that for consistency with other packages "halt" and "poweroff" aliases
  26. are provided, however they have no special significance. The default action
  27. is to power down the system if called as either "shutdown", "halt", or
  28. "poweroff".
  29. .\"
  30. .SH OPTIONS
  31. .TP
  32. \fB\-\-help\fR
  33. Display brief help text and then exit.
  34. .TP
  35. \fB\-r\fP
  36. Request a shutdown followed by restart. This is the default if executed as
  37. \fBreboot\fR.
  38. .TP
  39. \fB\-h\fP
  40. Shutdown and then halt the system (without powering down).
  41. .TP
  42. \fB\-p\fP
  43. Shutdown and then power down the system. This is the default unless executed
  44. as \fBreboot\fR.
  45. .TP
  46. \fB\-\-use\-passed\-cfd\fR
  47. Instead of attempting to open a socket connection to the service daemon,
  48. use a pre-opened connection that has been passed to the process from its parent
  49. via an open file descriptor. The file descriptor with the connection is identified
  50. by the DINIT_CS_FD environment variable.
  51. .TP
  52. \fB\-\-system\fR
  53. Shut down directly, instead of by issuing a command to the service manager. Use of
  54. this option should be avoided, but it may allow performing a clean shutdown in case
  55. the service manager has stopped responding.
  56. The service manager may invoke \fBshutdown\fR with this option in order to perform
  57. system shutdown after it has rolled back services.
  58. .\"
  59. .SH SEE ALSO
  60. .\"
  61. \fBdinit\fR(8), \fBdinitctl\fR(8)
  62. .\"
  63. .SH AUTHOR
  64. Dinit, and this manual, were written by Davin McCall.
  65. $$$dnl