Headless Server Go Back To Live Logging

Post all other topics which do not belong to any other category.
DTGFactorio
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Nov 15, 2016 5:22 pm
Contact:

Headless Server Go Back To Live Logging

Post 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
saibotxd
Burner Inserter
Burner Inserter
Posts: 5
Joined: Tue Nov 22, 2016 2:03 pm
Contact:

Re: Headless Server Go Back To Live Logging

Post 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
Post Reply

Return to “General discussion”