Menu
  • HOME
  • TAGS

Error running bash script in supervisor [closed]

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...

Nginx with Supervisor keep changing status b/w Running and Starting

nginx,supervisord,supervisor

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.

Running node and nginx in docker with supervisor

node.js,nginx,docker,supervisor

Have you considered running the two services in separate containers?

Using docker environment -e variable in supervisor

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...

How to exit a supervisor process with fabric file?

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 process termination: Where/When does it happen?

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...

Supervisor / Unix Permission Denied to write in directory

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. ...

Relationship of Akka SupervisorStrategies to children

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...

Can I import configuration files with supervisord?

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...

Unable to use remote slave node in Apache Storm cluster

storm,supervisor

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.

Can't kill celery processes started by Supervisor

celery,supervisor

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....

Launching multiple Docker containers with supervisor

docker,supervisor

if you run your container with the -i option, it will block docker run -i my/container:tag...

Supervisor & Docker: How to exit Supervisor if a service doesn't start?

docker,supervisor

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.

Supervisor doesn't recognize environment variable in Nodejs

node.js,supervisor

It seems that after typing supervisorctl reread you should also use supervisorctl update

Erlang OTP supervisor gen_tcp - {error,eaddrinuse}

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....

Crontab restart supervisor python instance?

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 * *...

supervisor - how to run multiple commands

python,celery,supervisor

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...

Schedule restart of Akka actor

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...

Erlang supervisor termination behavior

erlang,terminate,supervisor

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...