Run PhotonServer in foreground mode

Options
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

  • chvetsov
    Options
    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
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @selfsx,

    Thank you for choosing Photon!

    PhotonSocketServer command line manual can be found here.
  • selfsx
    selfsx
    edited March 2019
    Options
    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.