service elasticsearch start
ps -ef | grep controller
elastic+ 11971 11922 0 13:18 ? 00:00:00 /usr/share/elasticsearch/plugins/x-pack/platform/linux-x86_64/bin/controller
I stopped the ES service and ran only the controller program, but it not created any new file in /tmp. So I run ES and the controller in the same sequence as you say. I checked that the file was created only by the ES service, running only the controller program does not create the file.
To be clear, I ran the ES service AND the controller program, so there are two process "controller" running.
ls -ltr /tmp
prw------- 1 elasticsearch elasticsearch 0 Jun 12 13:18 controller_log_11922
When I use the tail command makes the "controller_log" disapear and "controller_command" file appears.
ls -ltr /tmp
prw------- 1 elasticsearch elasticsearch 0 Jun 12 13:23 controller_command_11922
yes > /tmp/controller_command_11922
Result: The controller process still running (one from ES service and other from my root shell).
ps -ef | grep controller
elastic+ 11971 11922 13 13:18 ? 00:01:06 /usr/share/elasticsearch/plugins/x-pack/platform/linux-x86_64/bin/controller
root 12059 11105 0 13:20 pts/18 00:00:00 /usr/share/elasticsearch/plugins/x-pack/platform/linux-x86_64/bin/controller
When I stopped the "yes", only the ES controller was terminated.
tail -f /tmp/controller_log_11922
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"ERROR","pid":11971,"thread":"0x7f018a848780","message":"Did not understand verb 'y'","class":"ml","method":"controller::CCommandProcessor::handleCommand","file":"CCommandProcessor.cc","line":88}
{"logger":"controller","timestamp":1497284856695,"level":"INFO","pid":11971,"thread":"0x7f018a848780","message":"Ml controller exiting","method":"main","file":"Main.cc","line":168}
tail: não foi possível verificar 'controller_log_11922': Arquivo ou diretório não encontrado (File or directory not found)
tail: inotify não pode ser utilizado, revertendo para verificação (inotify can not be used, reverting to verification)