Alfredo Di Napoli
2015-05-10 08:20:49 UTC
Hello everyone,
I have switched to supervisor only recently and Iâm getting myself
acquainted.
Something I would like to do is to externally pass the value for numproc,
under the form of an environment variable, like so:
[âŠ]
numprocs_start=0
numprocs=%(ENV_HERMES_INSTANCES)01d
[âŠ]
But it doesnât seem to work the way I expected:
$ supervisorctl reread
ERROR: CANT_REREAD: invalid literal for long() with base 10:
'%(ENV_HERMES_INSTANCES)01dâ
Thus my question: Is it possible at all? If yes, how?
Thank you very much!
Alfredo
I have switched to supervisor only recently and Iâm getting myself
acquainted.
Something I would like to do is to externally pass the value for numproc,
under the form of an environment variable, like so:
[âŠ]
numprocs_start=0
numprocs=%(ENV_HERMES_INSTANCES)01d
[âŠ]
But it doesnât seem to work the way I expected:
$ supervisorctl reread
ERROR: CANT_REREAD: invalid literal for long() with base 10:
'%(ENV_HERMES_INSTANCES)01dâ
Thus my question: Is it possible at all? If yes, how?
Thank you very much!
Alfredo