Run PhotonServer in foreground mode

Hello.
Is there any way to start photon server from CLI in foreground mode? For example, something like this:
./PhotonSocketServer.exe /run /foreground LoadBalancing










Comments

  • hi, @selfsx

    there is no such switch for PhotonSocketServer.exe.

    I should admit that I'm not sure what do you mean by 'foreground' and why do you need this

    best,
    ilya
  • Hi @selfsx,

    Thank you for choosing Photon!

    PhotonSocketServer command line manual can be found here.
  • selfsxselfsx
    edited March 26
    chvetsov said:

    hi, @selfsx

    there is no such switch for PhotonSocketServer.exe.

    I should admit that I'm not sure what do you mean by 'foreground' and why do you need this

    best,
    ilya

    We're launching our photon instances inside Docker containers. The thing is: Photon should be the only process that works in foreground so I can simply launch photon container in daemon mode (see example of any container e.g. nginx). Right now, it is not possible. I launch photon instance, wait till it starts and start another process to hang container (in my case Get-Content /path/to/pluginlogs -Wait). So, if photon process fails for some reason container don't. And monitoring system can't simply restart failed container.
Sign In or Register to comment.