Просмотр исходного кода

Improve daemon tutorial wording

Ask Solem 12 лет назад
Родитель
Сommit
c5b22f43f0
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      docs/tutorials/daemonizing.rst

+ 7 - 1
docs/tutorials/daemonizing.rst

@@ -33,10 +33,16 @@ Init script: celeryd
 :Usage: `/etc/init.d/celeryd {start|stop|restart|status}`
 :Usage: `/etc/init.d/celeryd {start|stop|restart|status}`
 :Configuration file: /etc/default/celeryd
 :Configuration file: /etc/default/celeryd
 
 
-To configure this script to run the worker properly you probably need to at least tell it where to change
+To configure this script to run the worker properly you probably need to at least
+tell it where to change
 directory to when it starts (to find the module containing your app, or your
 directory to when it starts (to find the module containing your app, or your
 configuration module).
 configuration module).
 
 
+The daemonization script is configured by the file ``/etc/default/celeryd``,
+which is a shell (sh) script.  You can add environment variables and the
+configuration options below to this file.  To add environment variables you
+must also export them (e.g. ``export DISPLAY=":0"``)
+
 .. _generic-initd-celeryd-example:
 .. _generic-initd-celeryd-example:
 
 
 Example configuration
 Example configuration