made a web-socket server on the site using Ratchet php. I start the server manually via the console. but, as I understand it, it’s not an option to run the process through the console each time. It is necessary that the server starts automatically when the site loads and works autonomously for itself. According to information from the network, I heard that for such purposes you need to use network daemons. Is it true ?

  • You just need to add the launch of your server to startup scripts. look something like /etc/local.d in different systems of loading a little bit in different places - Mike
  • can be a little more detail? rummaged a lot of information, but did not find anything sensible - Kolya Vantukh
  • Do you have a directory /etc/local.d? If yes - put there the file in which you write the start command. Keep in mind at the time of his work may not yet be prescribed paths to the main folders, so all commands must be written with full paths. Maybe there is some file already there - you can add to it - Mike
  • If there is no directory, examine the contents of /etc/init.d and /etc/rc.d there all the autorun files, only be careful with them, they still run the whole system. There surely is some kind of local file which user scripts start from somewhere. you need to figure it out where it starts from and put in there or in himself - Mike
  • See, I have Apache installed. there are no catalogs of these there - Kolya Vantukh

0