linux,bash,shell,debian,supervisor
Thanks Etan Reisner, I have already fix the problem, I will put it here so if anyone else have the same problem see why. The problem was so simple (as usual) I was reading the content of text files /sys/class/net/eth0/carrier and /sys/class/net/eth0/operstate to detect when the network cable was plugged...
Its been a long time, but it might help someone else... set "daemon off" in your nginx config. Supervisord requires processes not to run as daemons.
node.js,nginx,docker,supervisor
Have you considered running the two services in separate containers?
python,docker,environment-variables,supervisor
The variable is being passed to your container, but supervisor doesn't let use environment variables like this inside the configuration files. You should review the supervisor documentation, and specifically the parts about string expressions. For example, for the command option: Note that the value of command may include Python string...
python,fabric,supervisord,supervisor
This is rather about using supervisorctl than using fabric Avoid fab calls to commands, requiring user interaction Fabric does one-shot calls to commands and then returns. Shall be no long term activity on console. The solution for your problem is not to enter interactive mode (which awaits some further input),...
erlang,shutdown,otp,supervisor
It is quite nicely explained in the docs (sections 12.4, 12.5, 12.6, 12.7). There are two cases: Your process terminated due to some bad logic. It throws an error, so it can be in the middle of work and this could be bad. If you want to prevent that, you...
python,unix,file-permissions,supervisor
You should try and restart the actual machine after making the file permission changes. If you are running this on a remote server, issue a command via the web host control panel to reboot the actual machine. This should hopefully solve the issue. ...
java,exception,akka,supervisor
You are correct except it includes throwables, that is Error, as well as Exception, in a default decider rule and it operates any time an Actor throws a Throwable. According to http://doc.akka.io/docs/akka/2.0/java/fault-tolerance.html#default-supervisor-strategy, by default if there is no defined supervisor strategy or it does not cover an exception thrown by...
environment-variables,supervisor
I didn't understand the part about wanting to keep conf.d public (why do that?), but aside from that, try using exec in the last line of the shell script: exec ~/src/handybot/bin/hubot -a xmpp Alternatively you can usually pass env vars like ABC=2 DEF=3 ~/src/handybot/bin/hubot -a xmpp I say "usually" only...
I discovered the problem. I should set my zookeeper at my slave nodes, not at my master node. Now the problem is solved & the storm cluster is up.
Sending kill -9 have to kill process. If supervisorctl stop doesn't stop your process you can try setting up stopsignal to one of other values, for example QUIT or KILL. You can see more in supervisord documentation....
if you run your container with the -i option, it will block docker run -i my/container:tag...
You can do this with a Supervisor event listener. Subscribe it to the event PROCESS_STATE_FATAL, and respond to the event by sending a SIGTERM to supervisord, which you are presumably running as PID 1 within the container.
It seems that after typing supervisorctl reread you should also use supervisorctl update
erlang,restart,otp,supervisor,gen-tcp
Is the process managing the gen_tcp socket a gen_server? If so, it will make your life easier. If it is a gen_server, add process_flag(trap_exit, true) to your init function. This makes it so that when your process "crashes", it calls the terminate/2 callback function prior to actually exiting the process....
python,ubuntu,crontab,supervisor,apscheduler
Root cron jobs do not need to specify sudo in the script path to run with administrative privilege (root has the top-level privilege). To add a cron job to list of root's cron jobs, run: sudo crontab -e Your cron tab entry should be modified to: 01 12 * *...
Add a second section with a different task name. If two tasks have the same task name, the latter overwrites the former. [program:celeryb] command = /var/worker/venv/bin/celery worker -A b_report_tasks -Q b_report_process --loglevel=INFO directory=/var/worker user=nobody numprocs=1 autostart=true autorestart=true startsecs=10 stopwaitsecs = 60 stdout_logfile=/var/log/celery/worker.log stderr_logfile=/var/log/celery/worker.log killasgroup=true priority=998 You can also group them...
scala,akka,delay,restart,supervisor
Delay on restart hasn't been implemented yet. Thread.sleep is out of the question performance wise. I see two choices : Have your main actor create the querying actor on a message. When it blows up because of a database outage, you can just stop the actor and re-schedule a message...
It is entirely expected, and it is expected because you are abusing the supervision tree capability. There is a hidden supervisor called the "application supervisor". Your application:start function is supposed to return a SINGLE pid which is to be monitored by the application supervisor. If that process crashes, the BEAM...