Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running in the background doesn't work #11

Open
ffuentese opened this issue Jul 17, 2021 · 3 comments
Open

Running in the background doesn't work #11

ffuentese opened this issue Jul 17, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ffuentese
Copy link

I wanna keep a rustifarm instance in the background but I'm not able to keep it there. I need to run it in the background and close that terminal and keep having access to that process but if I close the window it's gone. I'm using OpenBSD 6.9

@jmdejong jmdejong added the bug Something isn't working label Jul 18, 2021
@jmdejong
Copy link
Owner

How did you start rustifarm? can you list all commands/steps you ran before closing the terminal?

@jmdejong
Copy link
Owner

I think I managed to replicate the issue on OpenBSD 6.8
It looks like the issue does not occur on linux.

Just closing the window does not in itself stop the server, but a new player connecting while the window is closed does crash the server.
I suspect that the problem is in the logging: it crashes because it can't write to stdout/stderr when the window is closed.
This does not explain why it does not crash when a player disconnects (that should give a log message too), but I can't replicate the error when redirecting stdout and stderr to log files

Workaround: Redirect stdout and stderr to log files:

/home/troido/rustifar/target/release/asciifarm -c /home/troido/rustifarm/content/ >stdout.log 2>stderr.log &

Does this workaround work for you?

@ffuentese
Copy link
Author

That worked, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants