Skip to content

Commit

Permalink
docs: Add more details to runcmd docs (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon authored Feb 14, 2022
1 parent 50195ec commit 1d3ddaf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cloudinit/config/cc_runcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@
"""\
Run arbitrary commands at a rc.local like level with output to the
console. Each item can be either a list or a string. If the item is a
list, it will be properly executed as if passed to ``execve()`` (with
the first arg as the command). If the item is a string, it will be
written to a file and interpreted
using ``sh``.
list, it will be properly quoted. Each item is written to
``/var/lib/cloud/instance/runcmd`` to be later interpreted using
``sh``.
Note that the ``runcmd`` module only writes the script to be run
later. The module that actually runs the script is ``scripts-user``
in the :ref:`Final` boot stage.
.. note::
Expand Down

0 comments on commit 1d3ddaf

Please sign in to comment.