Page 1 of 1

Headless Server Go Back To Live Logging

Posted: Mon Nov 21, 2016 6:41 am
by DTGFactorio
This might sound not rly understandable but I will put it as basic as I can.

Now I started the server and it started the live logging inside of the terminal where you can send commands to and chat with players on the server. But I accidentally closed the terminal.. how do I get that "live logging" back without restarting the server?

TY in advance, love Nuggat

Re: Headless Server Go Back To Live Logging

Posted: Tue Nov 22, 2016 3:20 pm
by saibotxd
Hi DTGFactorio,

hmm ... I assume you entered something like this:

Code: Select all

/your/path/to/factorio/bin/x64/factorio --start-server-load-latest
If you close that terminal, your server should shut down immediately.
Do you have any further scripts which handle Factorio?

All of your Logs are saved here:

Code: Select all

/your/path/to/factorio/factorio-current.log
To "go back to logging" you could use this:

Code: Select all

tail -f /your/path/to/factorio/factorio-current.log
If you're familiar with screen, this is even better:

Code: Select all

screen -S factorio-log tail -f /your/path/to/factorio/factorio-current-log
For user communication, I would use the server.fifo file, but that's another story.

Was this helpful?
Give me some quick feedback and if you have any further questions, just let me know.

Best regards,
saibotxd