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

Daemonize the executable #360

Open
cyanide-aoe2 opened this issue Sep 4, 2023 · 3 comments
Open

Daemonize the executable #360

cyanide-aoe2 opened this issue Sep 4, 2023 · 3 comments

Comments

@cyanide-aoe2
Copy link

Currently using screen. However, it would be nice to have a --daemon flag that daemonizes the server-manager binary.

@Mattie112
Copy link
Contributor

I would suggest to use something like:

http://supervisord.org/

(or docker)

@knoxfighter
Copy link
Member

No need for a daemon, just use docker or create a systemd (depending on the distro) service.

We provide a docker image. for simple setup use the example compose file: docker-compose.simple.yaml

@Zorbatron
Copy link

You could use a Systemd service if you're avoiding Docker. Assuming that your ofsm location is in /opt, it could look like this:

[Unit]
Description=Open Factorio Server Manager

[Service]
WorkingDirectory=/opt/ofsm
ExecStart=/opt/ofsm/factorio-server-manager

[Install]
WantedBy=multi-user.target

If you're using something like OpenRC because you're also avoiding Systemd then you can make services for that too.

But the easiest way is to use Docker as Mattie112 and knoxfighter have said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants