supervisord

Supervisor open file limit won't change when using Chef

倾然丶 夕夏残阳落幕 提交于 2019-12-21 05:15:14
问题 I am modifying /etc/security/limits.conf on the machine, and then installing Supervisor in a Chef recipe. After the recipe run finishes, if I run cat /proc/<process id>/limits I see: Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max open files 1024 4096 files If I log into the machine and run service supervisor restart , the max open files is then set correctly. However, if I run this command in the recipe (right after installing supervisor, at the very end of the

Running multiple Django Celery websites on same server

十年热恋 提交于 2019-12-21 04:51:25
问题 I'm running multiple Django/apache/wsgi websites on the same server using apache2 virtual servers. And I would like to use celery, but if I start celeryd for multiple websites, all the websites will use the configuration (logs, DB, etc) of the last celeryd instance I started. Is there a way to use multiple Celeryd (one for each website) or one Celeryd for all of them? Seems like it should be doable, but I can't find out how. 回答1: This problem was a big headache, i didn't noticed @Crazyshezy

Running multiple Django Celery websites on same server

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 04:51:23
问题 I'm running multiple Django/apache/wsgi websites on the same server using apache2 virtual servers. And I would like to use celery, but if I start celeryd for multiple websites, all the websites will use the configuration (logs, DB, etc) of the last celeryd instance I started. Is there a way to use multiple Celeryd (one for each website) or one Celeryd for all of them? Seems like it should be doable, but I can't find out how. 回答1: This problem was a big headache, i didn't noticed @Crazyshezy

ELK 5.1.2 安装配置

◇◆丶佛笑我妖孽 提交于 2019-12-21 03:58:59
环境:(elasticsearch-5.1.2 elasticsearch-head logstash-5.1.2 kibana-5.1.2)+supervisor-3.3.1+centos 6.8 一、准备工作 yum -y install java-1.8.0-openjdk # 配置java环境变量,添加如下内容: vim /etc/profile export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk.x86_64 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin # 修改系统参数 vim /etc/security/limits.conf * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096 vim /etc/security/limits.d/90-nproc.conf * soft nproc 2048 root soft nproc unlimited vim /etc/sysctl.conf vm.max_map_count

supervisord exiting with ENOEXEC

可紊 提交于 2019-12-20 18:01:38
问题 I am trying to run a java process with supervisord and am getting: couldn't exec /var/application/start_tester: ENOEXEC The contents of start_tester is: java -Duser.dir=/var/application/ -cp /var/application/application.jar:/var/application/toepoke.jar com.application.Application When I run the script from the console the app runs as expected. Here is my supervisor config [program:application_tester] directory=/var/application command=/var/application/start_tester ; the program (relative uses

supervisord exiting with ENOEXEC

可紊 提交于 2019-12-20 18:01:08
问题 I am trying to run a java process with supervisord and am getting: couldn't exec /var/application/start_tester: ENOEXEC The contents of start_tester is: java -Duser.dir=/var/application/ -cp /var/application/application.jar:/var/application/toepoke.jar com.application.Application When I run the script from the console the app runs as expected. Here is my supervisor config [program:application_tester] directory=/var/application command=/var/application/start_tester ; the program (relative uses

Setting up Supervisord on a AWS AMI Linux Server [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-20 08:22:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . I'm trying to get supervisor working to make sure my queue system is always running. Here are the steps I took, which I pieced together from various sources: (Ran as root or super user) 1) $ easy_install supervisor 2) $ echo_supervisord_conf > /etc/supervisord.conf 3) $ sudo vi supervisord.conf 4) Pasted the

node.js child_process.spawn ENOENT error - only under supervisord

耗尽温柔 提交于 2019-12-20 04:44:27
问题 I'm running a command with Node.js using child_process.spawn: #!/usr/bin/js var spawn = require("child_process").spawn; var stockfish = spawn("stockfish"); This works fine using $js spawntest.js from the command line; it just hangs like you would expect because the subcommand is waiting for input. When I set this script up as a supervisord program, however, it fails: $ sudo supervisorctl start spawntest spawntest: ERROR (abnormal termination) Here is the contents of the stderror output log

node.js child_process.spawn ENOENT error - only under supervisord

老子叫甜甜 提交于 2019-12-20 04:44:18
问题 I'm running a command with Node.js using child_process.spawn: #!/usr/bin/js var spawn = require("child_process").spawn; var stockfish = spawn("stockfish"); This works fine using $js spawntest.js from the command line; it just hangs like you would expect because the subcommand is waiting for input. When I set this script up as a supervisord program, however, it fails: $ sudo supervisorctl start spawntest spawntest: ERROR (abnormal termination) Here is the contents of the stderror output log

Is there Windows analog to supervisord?

别来无恙 提交于 2019-12-17 08:33:26
问题 I need to run python script and be sure that it will restart after it terminates. I know that there is UNIX solution called supervisord. But unfortunately server where my script has to be run is on Windows. Do you know what tool can be useful? Thanks 回答1: Despite the big fat disclaimer here, you can run Supervisor with Cygwin in Windows; it turns out that Cygwin goes a long way to simulate a Posix environment, so well that in fact supervisord runs unchanged. There is no need to learn a new