dinitcheck.8.m4 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. changequote(`@@@',`$$$')dnl
  2. @@@.TH DINITCHECK "8" "$$$MONTH YEAR@@@" "Dinit $$$VERSION@@@" "Dinit \- service management system"
  3. .SH NAME
  4. dinitcheck \- check service configuration
  5. .\"
  6. .SH SYNOPSIS
  7. .\"
  8. .nh
  9. .\"
  10. .HP
  11. .B dinitcheck
  12. [\fB\-d\fR|\fB\-\-services\-dir\fR \fIdir\fR]
  13. [\fIservice-name\fR...]
  14. .\"
  15. .hy
  16. .\"
  17. .SH DESCRIPTION
  18. .\"
  19. The \fBdinitcheck\fR utility checks the service configuration for
  20. \fBDinit\fR services (see \fBdinit\fR(8)), and reports any errors it finds.
  21. This allows for finding errors before they can cause a service to fail to
  22. load during system operation.
  23. .LP
  24. Errors reported by \fBdinitcheck\fR include:
  25. .IP \(bu
  26. Syntax errors
  27. .IP \(bu
  28. Invalid parameter values
  29. .IP \(bu
  30. Service dependency cycles
  31. .LP
  32. Unless altered by options specified on the command line, this utility uses the
  33. same search paths (for service description files) as \fBdinit\fR.
  34. .\"
  35. .SH OPTIONS
  36. .TP
  37. \fB\-d\fR \fIdir\fP, \fB\-\-services\-dir\fR \fIdir\fP
  38. Specifies \fIdir\fP as the directory containing service definition files (can
  39. be given multiple times to specify multiple service directories).
  40. Default directories are not searched for services when this option is provided.
  41. .sp
  42. If not specified, the default is \fI$HOME/.config/dinit.d\fR or, for the
  43. system service manager, each of \fI/etc/dinit.d/fR, \fI/usr/local/lib/dinit.d\fR,
  44. and \fI/lib/dinit.d\fR (searched in that order).
  45. .TP
  46. \fB\-\-help\fR
  47. Display brief help text and then exit.
  48. .TP
  49. \fIservice-name\fR
  50. Specifies the name of a service that should be checked (along with its
  51. dependencies).
  52. If none are specified, defaults to \fIboot\fR (which requires that a suitable
  53. service description for the \fIboot\fR service exists).
  54. .\"
  55. .SH NOTES
  56. .\"
  57. For service properties that are subject to environment variable substitution, including
  58. \fBsocket\-listen\fR, \fBlogfile\fR, \fBenv\-file\fR, \fBworking\-dir\fR and \fBpid\-file\fR, the
  59. substitution may have a different result when performed by \fBdinitcheck\fR than when performed by
  60. \fBdinit\fR if the two processes have a different environment.
  61. For this reason \fBdinitcheck\fR will issue a warning whenever substitution is used.
  62. .\"
  63. .SH SEE ALSO
  64. .\"
  65. \fBdinit\fR(8), \fBdinit-service\fR(5).
  66. .\"
  67. .SH AUTHOR
  68. Dinit, and this manual, were written by Davin McCall.
  69. $$$dnl