tinnedkarma commented on code in PR #17215:
URL: https://github.com/apache/nuttx/pull/17215#discussion_r2445035611


##########
Documentation/applications/system/init/index.rst:
##########
@@ -0,0 +1,118 @@
+======================
+``init`` Init
+======================
+
+Init.rc Syntax
+==============
+
+Init.rc consists of five categories of statements, all line-oriented with
+parameters separated by spaces. The content is processed by a preprocessor,
+following C language specifications for escape rules and comment formats.
+File path: /etc/init.d/init.rc.
+
+1. Actions and Commands
+-----------------------
+::

Review Comment:
   Throughout the NuttX documentation the  
   ``.. code-block:: console`` or ``.. code-block:: bash`` block is used, 
rather than literal blocks ``::``
   I suggest using the same approach here for anything "output"/commands 
related.



##########
Documentation/applications/system/init/index.rst:
##########
@@ -0,0 +1,118 @@
+======================
+``init`` Init
+======================
+
+Init.rc Syntax
+==============
+
+Init.rc consists of five categories of statements, all line-oriented with
+parameters separated by spaces. The content is processed by a preprocessor,
+following C language specifications for escape rules and comment formats.
+File path: /etc/init.d/init.rc.
+
+1. Actions and Commands
+-----------------------
+::
+
+    on <trigger> [&& <trigger>]*
+       <command>
+       <command>
+       <command>
+
+- An Action (command sequence) contains trigger conditions. When satisfied,
+  it is added to the execution queue. Multiple triggers can be combined (e.g.,
+  boot && property:true=true). Two types of triggers are supported: event
+  triggers (e.g., boot) and property triggers (e.g., property:a=b).
+- Commands are the specific execution content of actions, such as setprop
+  (set system properties), start (start services), and mount (mount file
+  systems).
+
+2. Services and Options
+-----------------------
+::

Review Comment:
   Here as well



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to