瀏覽代碼

Add side note about %h macro escaping in a supervisord config file

Signed-off-by: Balthazar Rouberol <balthazar.rouberol@mapado.com>
Balthazar Rouberol 10 年之前
父節點
當前提交
a7e44097c0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/userguide/workers.rst

+ 3 - 0
docs/userguide/workers.rst

@@ -55,6 +55,9 @@ these will expand to:
     - ``worker1.%n`` -> ``worker1.george``
     - ``worker1.%d`` -> ``worker1.example.com``
 
+.. note:: If you're storing the worker invokation command in a supervisord configuration file, the ``%`` sign must be escaped by adding a second one.
+   Thus, ``%h`` must be written ``%%h``
+
 .. _worker-stopping:
 
 Stopping the worker