Code Monkey home page Code Monkey logo

fivem_linux_manager's Introduction

fivem_linux_manager

Description

Manage your Fivem Linux server

Includes server script for sending in game message notifications 15 minutes, 10 minutes, 5 minutes, and 30 seconds before restart - default is set for restarts twice a day at 6am and 6pm.

Setup

  • Install into resources directory

  • Add the following line to your mods list in server.cfg

ensure fivem_linux_manager
  • Move the manager.sh file to your roots /bin/ directory and run the following from your terminal to be able to run commands from the terminal:
$ sudo chmod +x /bin/manager.sh

Configuration

  • To setup automatic restarts you'll need to edit your systems CRON jobs
  • crontab is the simplest to use as it comes standard on most linux distributions. You can edit it using your servers default editor with:
$ crontab -e
  • Once in editing mode, add the below to it (this will set auto restart for 6am and 6pm relative to your servers time)
0 6 * * * manage.sh restart
0 18 * * * manage.sh restart

Important Notes

  • Make sure your FiveM path in your root directory matches what's in manager.sh at FIVEM_PATH=/FiveM.
  • The stop and restart methods will clear your servers cache found at resources/cache, if you don't want to clear your cache you can remove the following lines from the manage.sh file for both methods:
rm -R $FIVEM_PATH/server-data/cache/
echo -e "$GREEN Clearing the cache $NORMAL"

Usage

  • Once configured you can run start, stop, restart, status, screen from your servers terminal whenever you like

fivem_linux_manager's People

Contributors

itsamayo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ggamersid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.