/reload_fxserver

Debian BASH script for for FiveM FXServer. Start, Stop, Status, Restart, Backup

Primary LanguageShellGNU General Public License v3.0GPL-3.0

reload_fxserver

Debian BASH script for for FiveM FXServer. Start, Stop, Status, Restart, Backup

I recomend reading into BASH and testing in a safe enviroment before using this script.

Dependencies:

  • FXServer # FiveM modded GTAV Server
  • Debian # or similar UNIX system running BASH (most do, but I'm not going to test other OSs
  • screen # I prefer running screens and the script will requite modifcation to run without.
  • tar # I use tar with gzip compression for backups.
  • crontab # Optional, I use this to automate restart and backups at specific times.
  • MySQL/MariaDB # If you use this method of storing data on your FXserver

To install:

  1. Download files from github.
  2. Edit PATH in reload_fxserver.sh # Replace esx_server with your server user runing FXServer.
  3. Edit messages to match your language...I shoud probably just upload current in english...
  4. Edit ExcludeDatabases to match your DB's
  5. Make sure all the varibles match your folders and edit names how you like. Just don't use any other charachters then standard english alphapet A-Z and 0-9. Untested non the less.
  6. Update backups/.env with your user and password for your database user dedicated to your FXServer.
  7. fxserver_screen.conf do have path to a log foler. Keep it or change it, your choice. It's nice to have a secondary output for ther server log. You can allow certain people to follow the log files instead of giving them the screen...
  8. Look at my crontab example.
  9. Make your reload_fxserver.sh executable. chmod +x ./reload_fxserver.sh
  10. Leave feedback on the repo after testing!