Answer the question
In order to leave comments, you need to log in
How to train supervisor to monitor a process whose loader returns exitstatus 1?
Good afternoon.
I start electrum daemon, I want to use supervisor for its control.
I'm catching an endless process restart. I have figured out that the problem lies in the termination of the parent that starts the daemon.
How can I solve it?
[program:electrum]
process_name=%(program_name)s_%(process_num)02d
command=nohup /home/user/.local/bin/electrum -w /projects/1/storage/default_wallet daemon start
autostart=true
autorestart=true
user=user
numprocs=1
startsecs = 0
exitcodes = 0,1,2
redirect_stderr=true
stdout_logfile=/projects/1/storage/logs/supervisor.log
Answer the question
In order to leave comments, you need to log in
You need to remove nohup, and also do not run electrum in the background. Removing the start directive seems to be enough for this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question