Jump to content

[11500][patch] Run mangos as daemon (linux)


Recommended Posts

Posted

This patch allows MaNGOS to run as a daemon (starting and stopping are supported) without any third-party utilities (for example, GNU screen).

"<executable> -s run" start daemon ( will wait until MaNGOS is completely initialized or exit with non-zero return code in case of initialization failure)

"<executable> -s stop" stop daemon (will terminate the daemon process, or exit with non-zero return code if there is no such process or it was unable to terminate the process)

Please note: this patch is not guaranteed to work under BSD systems because it does not perform a double fork.

http://pastebin.com/sekMm28x

  • 1 month later...
  • 2 months later...
Posted

hmm... in mangosd.conf exist option for generation pid file.

I think this not related, but i can't debug this anyway in linux.

So if this broken and someone fix then please point to fix for possible include to master sources.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use