A
A
Alexey Maksimov2015-01-03 15:17:46
linux
Alexey Maksimov, 2015-01-03 15:17:46

What is the problem with starting a process after a system restart?

I configured supervisord to start the process at system startup, but the following happens:

2016-01-03 14:57:25,077 CRIT Supervisor running as root (no user in config file)
2016-01-03 14:57:25,280 INFO RPC interface 'supervisor' initialized
2016-01-03 14:57:25,280 CRIT Server 'inet_http_server' running without any HTTP authentication checking
2016-01-03 14:57:25,280 INFO RPC interface 'supervisor' initialized
2016-01-03 14:57:25,281 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-01-03 14:57:25,283 INFO daemonizing the supervisord process
2016-01-03 14:57:25,283 INFO supervisord started with pid 1816
2016-01-03 14:57:26,287 INFO spawned: 'ws_server' with pid 1819
2016-01-03 14:57:27,725 INFO success: ws_server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-03 14:59:44,742 WARN received SIGTERM indicating exit request
2016-01-03 14:59:44,744 INFO waiting for ws_server to die
2016-01-03 14:59:44,744 INFO stopped: ws_server (terminated by SIGTERM)

If supervisord is then restarted, then the process starts normally. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Axian Ltd., 2016-01-06
@AxianLTD

Apparently in the environment - when loading the environment variables are the same, when restarting from under the user, they are different. IMHO ws_server needs something that supervisord cannot give at startup (not configured).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question