Skip to content

Commit bad867b

Browse files
committed
Add note about semicolon in command. Closes #857
1 parent 219f7af commit bad867b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/configuration.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,14 @@ where specified.
606606
responsible for daemonizing its subprocesses (see
607607
:ref:`nondaemonizing_of_subprocesses`).
608608

609+
.. note::
610+
611+
The command will be truncated if it looks like a config file comment,
612+
e.g. ``command=bash -c 'foo ; bar'`` will be truncated to
613+
``command=bash -c 'foo ``. Quoting will not prevent this behavior,
614+
since the configuration file reader does not parse the command like
615+
a shell would.
616+
609617
*Default*: No default.
610618
611619
*Required*: Yes.

supervisor/skel/sample.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
; Notes:
77
; - Shell expansion ("~" or "$HOME") is not supported. Environment
88
; variables can be expanded using this syntax: "%(ENV_HOME)s".
9-
; - Comments must have a leading space: "a=b ;comment" not "a=b;comment".
109
; - Quotes around values are not supported, except in the case of
1110
; the environment= options as shown below.
11+
; - Comments must have a leading space: "a=b ;comment" not "a=b;comment".
12+
; - Command will be truncated if it looks like a config file comment, e.g.
13+
; "command=bash -c 'foo ; bar'" will truncate to "command=bash -c 'foo ".
1214

1315
[unix_http_server]
1416
file=/tmp/supervisor.sock ; the path to the socket file

0 commit comments

Comments
 (0)