系统:Debian 7 64bit
在 /etc/supervisor/conf.d 下放有两个 conf 文件,一个 ss.conf ,一个 mytest.conf 。
ss.conf 和 mytest.conf 分别为:
[program:ss]
command=/usr/local/bin/ssserver -c /etc/ss.json
autorestart=true
user=root
[program:mytest]
command=/usr/bin/mytest
autorestart=true
user=root
运行supervisorctl reload,日志如下:
2015-08-01 09:27:14,124 CRIT Supervisor running as root (no user in config file)
2015-08-01 09:27:14,124 WARN Included extra file "/etc/supervisor/conf.d/ss.conf" during parsing
2015-08-01 09:27:14,124 WARN Included extra file "/etc/supervisor/conf.d/mytest.conf" during parsing
2015-08-01 09:27:14,124 INFO RPC interface 'supervisor' initialized
2015-08-01 09:27:14,124 WARN cElementTree not installed, using slower XML parser for XML-RPC
2015-08-01 09:27:14,124 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-08-01 09:27:14,124 INFO supervisord started with pid 14297
2015-08-01 09:27:15,126 INFO spawned: 'ss' with pid 14956
2015-08-01 09:27:15,127 INFO spawned: 'mytest' with pid 14957
2015-08-01 09:27:15,135 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:16,326 INFO success: ss entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-01 09:27:16,327 INFO spawned: 'mytest' with pid 14970
2015-08-01 09:27:16,331 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:19,073 INFO spawned: 'mytest' with pid 14973
2015-08-01 09:27:19,077 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:22,935 INFO spawned: 'mytest' with pid 14975
2015-08-01 09:27:22,939 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:23,940 INFO gave up: mytest entered FATAL state, too many start retries too quickly
从日志中可以看到,mytest 总是 abnormal termination 异常终止!
file mytest ,返回如下:
/usr/bin/mytest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
这个mytest直接运行没有成功或者是错误提示,ps -ef |grep mytest ,进程存在。
现在的疑问是,mytest 是否是守护进程?supervisor是否不能对守护进程进行监视?
谢谢答疑!
在 /etc/supervisor/conf.d 下放有两个 conf 文件,一个 ss.conf ,一个 mytest.conf 。
ss.conf 和 mytest.conf 分别为:
[program:ss]
command=/usr/local/bin/ssserver -c /etc/ss.json
autorestart=true
user=root
[program:mytest]
command=/usr/bin/mytest
autorestart=true
user=root
运行supervisorctl reload,日志如下:
2015-08-01 09:27:14,124 CRIT Supervisor running as root (no user in config file)
2015-08-01 09:27:14,124 WARN Included extra file "/etc/supervisor/conf.d/ss.conf" during parsing
2015-08-01 09:27:14,124 WARN Included extra file "/etc/supervisor/conf.d/mytest.conf" during parsing
2015-08-01 09:27:14,124 INFO RPC interface 'supervisor' initialized
2015-08-01 09:27:14,124 WARN cElementTree not installed, using slower XML parser for XML-RPC
2015-08-01 09:27:14,124 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-08-01 09:27:14,124 INFO supervisord started with pid 14297
2015-08-01 09:27:15,126 INFO spawned: 'ss' with pid 14956
2015-08-01 09:27:15,127 INFO spawned: 'mytest' with pid 14957
2015-08-01 09:27:15,135 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:16,326 INFO success: ss entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-01 09:27:16,327 INFO spawned: 'mytest' with pid 14970
2015-08-01 09:27:16,331 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:19,073 INFO spawned: 'mytest' with pid 14973
2015-08-01 09:27:19,077 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:22,935 INFO spawned: 'mytest' with pid 14975
2015-08-01 09:27:22,939 INFO exited: mytest (exit status 1; not expected)
2015-08-01 09:27:23,940 INFO gave up: mytest entered FATAL state, too many start retries too quickly
从日志中可以看到,mytest 总是 abnormal termination 异常终止!
file mytest ,返回如下:
/usr/bin/mytest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped
这个mytest直接运行没有成功或者是错误提示,ps -ef |grep mytest ,进程存在。
现在的疑问是,mytest 是否是守护进程?supervisor是否不能对守护进程进行监视?
谢谢答疑!