Hi,
I am looking for a solution to auto start my SFS2X server if it shutdowns by any means so that my clients dont get hampered by server unavailability.
please suggest a solution.
I have hosted SFS2X server on a Amazon EC2 instance on Ubuntu 20.04 platform.
regards/
How to Auto Start SFS2X Server on Shutdown
Re: How to Auto Start SFS2X Server on Shutdown
Hi,
you can check the documentation here:
http://docs2x.smartfoxserver.com/Gettin ... tall-linux
The last section shows how to install the server as a service in the background.
In the systemd configuration you have this line:
You could replace that line (which is the default) with this:
This will restart the service if it fails for any reason.
Cheers
you can check the documentation here:
http://docs2x.smartfoxserver.com/Gettin ... tall-linux
The last section shows how to install the server as a service in the background.
In the systemd configuration you have this line:
Code: Select all
Restart=on-abort
You could replace that line (which is the default) with this:
Code: Select all
Restart=on-failure
This will restart the service if it fails for any reason.
Cheers
Who is online
Users browsing this forum: No registered users and 130 guests