The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
Go to file
Daniel Gibbs 68ae13c069
feat: change sleep timers (#4339)
* refactor: simplify sleep time functions

The `fn_sleep_time` function has been refactored to remove unnecessary conditions and set a default sleep time of 0.5 seconds. Additionally, four new functions (`fn_sleep_time_1`, `fn_sleep_time_5`, `fn_sleep_time_10`) have been added to provide different sleep times of 1, 5, and 10 seconds respectively. This improves code readability and allows for more flexibility in setting sleep times.

* change sleep to fn_sleep_time

* refactor: optimize sleep time functions

- Refactored the code to optimize the sleep time functions.
- Updated the `fn_sleep_time` function calls to `fn_sleep_time_1` in multiple files.
- Removed unnecessary sleep time calls in some files.

* refactor: simplify sleep time function call

The code changes refactor the sleep time function call in the check_deps.sh file. Instead of calling fn_sleep_time_1, it now calls fn_sleep_time. This change simplifies the code and improves readability.

* feat: add sleep time before checking session

Add a sleep time of 1 second before checking the session in the command_monitor.sh file. This allows for better synchronization and improves the accuracy of the session check.

* changes

* refactor: optimize sleep time function

The code changes refactor the sleep time function in multiple files to improve efficiency. The fn_sleep_time function is replaced with fn_sleep_time_1. This change reduces unnecessary delays during execution.

* refactor: update sleep time function names

The sleep time functions in the core_messages.sh file have been updated to use more descriptive names. The fn_sleep_time function has been renamed to fn_sleep_time_1 for clarity and consistency. This change improves code readability and maintainability.

* refactor: optimize sleep time in core_messages.sh

The commit optimizes the sleep time in the core_messages.sh file. The fn_sleep_time and fn_print_dots functions now use a shorter sleep time of 0.5 seconds instead of 1 second, resulting in faster execution.

* refactor: improve readability and consistency in code

- Refactored the log messages to use consistent capitalization and wording.
- Updated log messages in check_glibc.sh, check_permissions.sh, command_backup.sh, command_update_linuxgsm.sh, command_wipe.sh, fix_samp.sh, install_config.sh, and set_dst_config_vars() functions.

feat: add more descriptive log messages

- Added more descriptive log messages to provide clearer information about the actions being performed.
- Updated log messages in check_glibc.sh, check_permissions.sh, command_backup.sh, command_update_linuxgsm.sh, command_wipe.sh, fix_samp.sh, install_config.sh.

fix: correct spelling errors in log messages

- Corrected spelling errors in some of the log messages for better clarity.
- Updated log messages in check_glibc.sh and fix_samp.sh.

* refactor: remove unnecessary print statements

This commit refactors the code by removing unnecessary print statements in multiple files. The removed print statements were used for displaying dots and warnings, but they are not needed anymore. This improves the readability and cleanliness of the code.

* refactor: improve commit messages for code changes

- Refactored check_glibc.sh to improve readability and clarity of error messages.
- Refactored check_permissions.sh to provide more informative error messages when checking /sys permissions.
- Refactored check_system_requirements.sh to provide clearer warning message when checking RAM requirements.
- Refactored command_backup.sh to provide more descriptive messages when starting a backup.

* remove legacy code

* fix: remove \t

* fix: run check_root

check root was never running because of logic in linuxgsm.sh

* fix: update warning message for missing sudo access

The warning message for users without sudo access has been updated to provide clearer instructions. Instead of just suggesting manual installation, it now also suggests running the script as root using `./${selfname} install`. This change improves user experience and helps them resolve dependency installation issues more effectively.

* tidy
2023-10-15 17:52:03 +01:00
.github feat: change sleep timers (#4339) 2023-10-15 17:52:03 +01:00
.vscode chore: fix issue with vscode prettier 2023-04-06 21:57:05 +01:00
lgsm feat: change sleep timers (#4339) 2023-10-15 17:52:03 +01:00
.editorconfig update .editorconfig 2022-06-22 23:20:56 +01:00
.gitattributes chore: use prettier for code tidy (#3901) 2022-06-22 23:29:49 +01:00
.gitignore Release v23.3.3 2023-06-09 16:38:39 +01:00
.prettierrc update package.json 2023-10-08 23:33:24 +01:00
CODE_OF_CONDUCT.md chore: use prettier for code tidy (#3901) 2022-06-22 23:29:49 +01:00
CONTRIBUTING.md chore: use prettier for code tidy (#3901) 2022-06-22 23:29:49 +01:00
LICENSE.md Rename LICENSE to LICENSE.md 2023-01-14 00:37:13 +00:00
linuxgsm.sh feat: change sleep timers (#4339) 2023-10-15 17:52:03 +01:00
package-lock.json update package.json 2023-10-08 23:33:24 +01:00
package.json update package.json 2023-10-08 23:33:24 +01:00
README.md Update README.md 2023-09-08 23:52:03 +01:00

LinuxGSM Codacy grade GitHub Workflow Status Discord SteamCMD MIT License

LinuxGSM is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

Hassle-Free Dedicated Game Servers

Traditionally game servers are not easy to manage yourself. Admins often have to spend hours messing around trying to get their servers working. LinuxGSM is a command-line tool designed to be as simple as possible, allowing admins to spend less time on management and more time gaming.

Main features

100+ game servers supported

  • 🚚 Installer
  • 🔍 Monitor
  • ☎️ Alerts
  • ☁️ Updater
  • 📘 Server Details
  • 💾 Backup
  • 💻 Console

🐧 Compatibility

LinuxGSM will run on popular distros as long as the minimum requirements are met.

  • Ubuntu
  • Debian
  • CentOS

Other distros are likely to work but are not fully tested.

🔧 Requirements

Each game server has specific dependency requirements. Visit a specific game server installation page on the LinuxGSM website to check dependency requirements for the game server you want to install.

📘 Documentation

Documentation is found at linuxgsm.com and docs.linuxgsm.com.

Support

There are various ways to get support, check out the support page for the right support.

❤️ Sponsor

If you would like to sponsor to the project there are several ways you can, via GitHub Sponsors and PayPal. I would like to thank everyone who sponsors me. Since 2012 LinuxGSM has been steadily growing with new servers, features, and improvements added regularly.

🧙‍♂️ Contributors

A big thank you goes to all the wonderful people who contribute ideas, code, docs, and support to this project.