Hello, I am trying to setup supervisor to start a program where the ulimit stack size is unlimited. We have only two users on the system one is root and the other is our application user. Both have the ulimit -s set to unlimited for their user environment. We start our python application using the "command =" in the supervisor ini but it does not start with the unlimited value but with 8192. We have gotten around this by adding to the start of the command with:
bash -c 'ulimit -s unlimited; exec python...... Now we are adding to the command with another script and would like to take out the setting of the ulimit. How can we have the ulimit set or assumed when starting to have the stack size set to unlimited? I have tried the user= option and we have the environment=User="username" also set neither seems to work. The limits conf file is also set in /etc/security/limits for stack size to be unlimited. For example, as a test I used a small script the outputs the ulimits -a to a log file and the output is: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 1747 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 1747 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited but when I login as that user from the command line I get: $ ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 1747 max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 1747 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited Thank you for your assistance. -- *Mark *
_______________________________________________ Supervisor-users mailing list [email protected] https://lists.supervisord.org/mailman/listinfo/supervisor-users
