648 changed files with 34402 additions and 20813 deletions
@ -1,44 +0,0 @@ |
|||||
--- |
|
||||
name: Bug report |
|
||||
about: Found a bug? Raise a report. |
|
||||
|
|
||||
--- |
|
||||
Issues raised here are **ONLY** for: |
|
||||
* LinuxGSM bugs. |
|
||||
* Feature suggestions. |
|
||||
* Code contributions. |
|
||||
|
|
||||
Issues raised here are **NOT** for: |
|
||||
* General support. |
|
||||
* Specific game server issues (e.g CS:GO, TF2). |
|
||||
* Dedicated server issues (e.g Ubuntu, CentOS). |
|
||||
* Anything not directly related to LinuxGSM development. |
|
||||
|
|
||||
For general support visit the **[LinuxGSM-Support](https://linuxgsm.com/support)**. |
|
||||
|
|
||||
***Please use the template below, deleting the above text*** |
|
||||
|
|
||||
## User Story |
|
||||
|
|
||||
As a [user description], I want [desired action] so that [desired outcome]. |
|
||||
|
|
||||
## Basic info |
|
||||
|
|
||||
* **Distro:** [Ubuntu 18.04] |
|
||||
* **Game:** [Garry's Mod] |
|
||||
* **Command:** [Monitor] |
|
||||
* **LinuxGSM version:** [v20.1.3] |
|
||||
|
|
||||
## Further Information |
|
||||
|
|
||||
A clear description of what the bug is and any ideas on how to resolve it. Plus any further context that might be relevant to the issue. |
|
||||
|
|
||||
## To Reproduce |
|
||||
|
|
||||
Steps to reproduce the behaviour: |
|
||||
1. Go to '...' |
|
||||
2. Click on '....' |
|
||||
3. Scroll down to '....' |
|
||||
4. See error |
|
||||
|
|
||||
## Expected behaviour |
|
@ -0,0 +1,92 @@ |
|||||
|
--- |
||||
|
name: Bug Report |
||||
|
description: File a bug report |
||||
|
title: "[Bug]: " |
||||
|
labels: ["type: bug"] |
||||
|
body: |
||||
|
- type: markdown |
||||
|
attributes: |
||||
|
value: | |
||||
|
Thanks for taking the time to fill out this bug report! |
||||
|
- type: input |
||||
|
id: user-story |
||||
|
attributes: |
||||
|
label: User story |
||||
|
description: As a [user description], I want [desired action] so that [desired outcome]. |
||||
|
placeholder: As a [user description], I want [desired action] so that [desired outcome]. |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: input |
||||
|
id: game |
||||
|
attributes: |
||||
|
label: Game |
||||
|
description: What game server are you hosting? |
||||
|
placeholder: Valheim |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: dropdown |
||||
|
id: distro |
||||
|
attributes: |
||||
|
label: Linux distro |
||||
|
multiple: true |
||||
|
options: |
||||
|
- Ubuntu 24.04 |
||||
|
- Ubuntu 22.04 |
||||
|
- Ubuntu 20.04 |
||||
|
- Debian 12 |
||||
|
- Debian 11 |
||||
|
- RedHat 9 |
||||
|
- RedHat 8 |
||||
|
- Other |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: dropdown |
||||
|
id: command |
||||
|
attributes: |
||||
|
label: Command |
||||
|
multiple: true |
||||
|
options: |
||||
|
- "command: start" |
||||
|
- "command: stop" |
||||
|
- "command: restart" |
||||
|
- "command: monitor" |
||||
|
- "command: details" |
||||
|
- "command: update" |
||||
|
- "command: validate" |
||||
|
- "command: backup" |
||||
|
- "command: mods-install" |
||||
|
- "command: mods-update" |
||||
|
- "command: mods-remove" |
||||
|
- "command: debug" |
||||
|
- "command: console" |
||||
|
- "command: install" |
||||
|
- "command: auto-update" |
||||
|
- "command: update-lgsm" |
||||
|
- "command: wipe" |
||||
|
- "command: send" |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: textarea |
||||
|
id: further-info |
||||
|
attributes: |
||||
|
label: Further information |
||||
|
description: A clear description of what the bug is, any ideas on how to resolve it and any further context that might be relevant to the issue. |
||||
|
placeholder: Tell us what you see! |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: textarea |
||||
|
id: logs |
||||
|
attributes: |
||||
|
label: Relevant log output |
||||
|
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. |
||||
|
render: shell |
||||
|
- type: textarea |
||||
|
id: steps |
||||
|
attributes: |
||||
|
label: Steps to reproduce |
||||
|
description: Steps to reproduce the behaviour. |
||||
|
placeholder: | |
||||
|
1. Go to '...' |
||||
|
2. Click on '....' |
||||
|
3. Scroll down to '....' |
||||
|
4. See error |
@ -0,0 +1,8 @@ |
|||||
|
blank_issues_enabled: false |
||||
|
contact_links: |
||||
|
- name: Ask a question |
||||
|
about: Ask questions and discuss with other users of LinuxGSM. |
||||
|
url: https://github.com/GameServerManagers/LinuxGSM/discussions |
||||
|
- name: Discord Server |
||||
|
about: Join the LinuxGSM Discord community server. Discuss your LinuxGSM setup, get help and advice |
||||
|
url: https://linuxgsm.com/discord |
@ -1,39 +0,0 @@ |
|||||
--- |
|
||||
name: Feature request |
|
||||
about: Suggest an idea for LinuxGSM. |
|
||||
|
|
||||
--- |
|
||||
|
|
||||
Issues raised here are **ONLY** for: |
|
||||
* LinuxGSM bugs. |
|
||||
* Feature suggestions. |
|
||||
* Code contributions. |
|
||||
|
|
||||
Issues raised here are **NOT** for: |
|
||||
* General support. |
|
||||
* Specific game server issues (e.g CS:GO, TF2). |
|
||||
* Dedicated server issues (e.g Ubuntu, CentOS). |
|
||||
* Anything not directly related to LinuxGSM development. |
|
||||
|
|
||||
For general support visit the **[LinuxGSM Support](https://linuxgsm.com/support)** page. |
|
||||
|
|
||||
***Please use the template below, deleting the above text*** |
|
||||
|
|
||||
## User Story |
|
||||
|
|
||||
As a [user description], I want [desired action] so that [desired outcome]. |
|
||||
|
|
||||
## Basic info |
|
||||
|
|
||||
* **Distro:** [Ubuntu 20.04] |
|
||||
* **Game:** [Garry's Mod] |
|
||||
* **Command:** [Monitor] |
|
||||
* **LinuxGSM version:** [v20.1.3] |
|
||||
|
|
||||
## Further Information |
|
||||
|
|
||||
A clear description of what the feature is and any ideas on how to achieve this. |
|
||||
|
|
||||
## Further Reading |
|
||||
|
|
||||
Provide any useful documentation or resources that might help. |
|
@ -0,0 +1,75 @@ |
|||||
|
--- |
||||
|
name: Feature Request |
||||
|
description: Suggest a feature |
||||
|
title: "[Feature]: " |
||||
|
labels: ["type: feature"] |
||||
|
body: |
||||
|
- type: markdown |
||||
|
attributes: |
||||
|
value: | |
||||
|
Thanks for taking the time to fill out this feature request! |
||||
|
- type: input |
||||
|
id: user-story |
||||
|
attributes: |
||||
|
label: User story |
||||
|
description: As a [user description], I want [desired action] so that [desired outcome]. |
||||
|
placeholder: As a [user description], I want [desired action] so that [desired outcome]. |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: input |
||||
|
id: game |
||||
|
attributes: |
||||
|
label: Game |
||||
|
description: What game server are you hosting? |
||||
|
placeholder: Valheim |
||||
|
validations: |
||||
|
required: false |
||||
|
- type: dropdown |
||||
|
id: distro |
||||
|
attributes: |
||||
|
label: Linux distro |
||||
|
multiple: true |
||||
|
options: |
||||
|
- Ubuntu 24.04 |
||||
|
- Ubuntu 22.04 |
||||
|
- Ubuntu 20.04 |
||||
|
- Debian 12 |
||||
|
- Debian 11 |
||||
|
- RedHat 9 |
||||
|
- RedHat 8 |
||||
|
- Other |
||||
|
validations: |
||||
|
required: false |
||||
|
- type: dropdown |
||||
|
id: command |
||||
|
attributes: |
||||
|
label: Command |
||||
|
multiple: true |
||||
|
options: |
||||
|
- "command: start" |
||||
|
- "command: stop" |
||||
|
- "command: restart" |
||||
|
- "command: monitor" |
||||
|
- "command: details" |
||||
|
- "command: update" |
||||
|
- "command: validate" |
||||
|
- "command: backup" |
||||
|
- "command: mods-install" |
||||
|
- "command: mods-update" |
||||
|
- "command: mods-remove" |
||||
|
- "command: debug" |
||||
|
- "command: console" |
||||
|
- "command: install" |
||||
|
- "command: auto-update" |
||||
|
- "command: update-lgsm" |
||||
|
- "command: wipe" |
||||
|
- "command: send" |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: textarea |
||||
|
id: further-info |
||||
|
attributes: |
||||
|
label: Further information |
||||
|
description: A clear description of what the feature is and any ideas on how to achieve this. |
||||
|
validations: |
||||
|
required: true |
@ -1,29 +0,0 @@ |
|||||
--- |
|
||||
name: New server request |
|
||||
about: Suggest a new game server to be added. |
|
||||
|
|
||||
--- |
|
||||
|
|
||||
## What game server would you like adding? |
|
||||
|
|
||||
[game server] |
|
||||
|
|
||||
## Can you link to any tutorials or guides? |
|
||||
|
|
||||
Provide any useful documentation or resources that might help. |
|
||||
|
|
||||
## Is the server on Steam? |
|
||||
|
|
||||
* [ ] Yes |
|
||||
* [ ] No |
|
||||
|
|
||||
If yes Use SteamDB to get the appid. (https://steamdb.info). |
|
||||
|
|
||||
[appid] |
|
||||
|
|
||||
## Is the server supported on Linux? |
|
||||
|
|
||||
We only support Linux servers and do **not** support Wine. |
|
||||
|
|
||||
* [ ] Yes |
|
||||
* [ ] No |
|
@ -0,0 +1,57 @@ |
|||||
|
--- |
||||
|
name: Server Request |
||||
|
description: Suggest a new game server to be added |
||||
|
title: "[Server Request]: " |
||||
|
labels: ["type: game server request"] |
||||
|
body: |
||||
|
- type: markdown |
||||
|
attributes: |
||||
|
value: | |
||||
|
Thanks for taking the time to fill out this game server! |
||||
|
- type: input |
||||
|
id: game-server |
||||
|
attributes: |
||||
|
label: Game server |
||||
|
description: What game server would you like to add? |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: checkboxes |
||||
|
id: on-linux |
||||
|
attributes: |
||||
|
label: Linux support |
||||
|
description: Does this game server have Linux support? (not wine) |
||||
|
options: |
||||
|
- label: "Yes" |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: dropdown |
||||
|
id: on-steam |
||||
|
attributes: |
||||
|
label: Steam |
||||
|
description: Is this game server available on Steam? |
||||
|
options: |
||||
|
- "Yes" |
||||
|
- "No" |
||||
|
validations: |
||||
|
required: true |
||||
|
- type: input |
||||
|
id: steam-id |
||||
|
attributes: |
||||
|
label: Steam appid |
||||
|
description: What is the Steam appid of the game server? Use SteamDB to get the appid. (https://steamdb.info). |
||||
|
placeholder: "892970" |
||||
|
validations: |
||||
|
required: false |
||||
|
- type: textarea |
||||
|
id: guides |
||||
|
attributes: |
||||
|
label: Guides |
||||
|
description: Links to guides on how to install the game server |
||||
|
- type: checkboxes |
||||
|
id: terms |
||||
|
attributes: |
||||
|
label: Code of Conduct |
||||
|
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com) |
||||
|
options: |
||||
|
- label: I agree to follow this project's Code of Conduct |
||||
|
required: true |
@ -0,0 +1,8 @@ |
|||||
|
# Set update schedule for GitHub Actions |
||||
|
version: 2 |
||||
|
updates: |
||||
|
- package-ecosystem: "github-actions" |
||||
|
directory: "/" |
||||
|
schedule: |
||||
|
# Check for updates to GitHub Actions every weekday |
||||
|
interval: "daily" |
@ -1,4 +0,0 @@ |
|||||
label-alias: |
|
||||
bug: 'type: bug' |
|
||||
feature_request: 'type: feature request' |
|
||||
question: 'question' |
|
@ -0,0 +1,162 @@ |
|||||
|
"command: backup": |
||||
|
- "/(backup)/i" |
||||
|
"command: console": |
||||
|
- "/(console|tmux)/i" |
||||
|
"command: debug": |
||||
|
- "/(command: debug)/i" |
||||
|
"command: details": |
||||
|
- "/(command: details)/i" |
||||
|
"command: fast-dl": |
||||
|
- "/(fast-dl|fastdl)/i" |
||||
|
"command: install": |
||||
|
- "/(install)/i" |
||||
|
"command: mods": |
||||
|
- "/(command: mods)/i" |
||||
|
"command: monitor": |
||||
|
- "/(command: monitor)/i" |
||||
|
"command: post-details": |
||||
|
- "/(command: post-details)/i" |
||||
|
"command: restart": |
||||
|
- "/(command: restart)/i" |
||||
|
"command: send": |
||||
|
- "/(command: send)/i" |
||||
|
"command: skeleton": |
||||
|
- "/(command: skeleton)/i" |
||||
|
"command: start": |
||||
|
- "/(command: start)/i" |
||||
|
"command: stop": |
||||
|
- "/(command: stop)/i" |
||||
|
"command: update-lgsm": |
||||
|
- "/(update-lgsm)/i" |
||||
|
"command: update": |
||||
|
- "/(command: update)/i" |
||||
|
"command: validate": |
||||
|
- "/(validate)/i" |
||||
|
"command: wipe": |
||||
|
- "/(wipe)/i" |
||||
|
|
||||
|
# Distros |
||||
|
"distro: AlmaLinux": |
||||
|
- "/(Alma)/i" |
||||
|
"distro: Arch Linux": |
||||
|
- "/(Arch Linux)/i" |
||||
|
"distro: CentOS": |
||||
|
- "/(CentOS)/i" |
||||
|
"distro: Debian": |
||||
|
- "/(Debian)/i" |
||||
|
"distro: Fedora": |
||||
|
- "/(Fedora)/i" |
||||
|
"distro: openSUSE": |
||||
|
- "/(openSUSE|suse)/i" |
||||
|
"distro: Rocky Linux": |
||||
|
- "/(Rocky)/i" |
||||
|
"distro: Slackware": |
||||
|
- "/(Slackware)/i" |
||||
|
"distro: Ubuntu": |
||||
|
- "/(Ubuntu)/i" |
||||
|
|
||||
|
# Games |
||||
|
"game: 7 Days to Die": |
||||
|
- "/(7 Days to Die|sdtd)/i" |
||||
|
"game: Ark: Survival Evolved": |
||||
|
- "/(Ark: Survival Evolved|Ark)/i" |
||||
|
"game: ARMA 3": |
||||
|
- "/(ARMA 3|ARMA3)/i" |
||||
|
"game: Assetto Corsa": |
||||
|
- "/(Assetto Corsa)/i" |
||||
|
"game: Avorion": |
||||
|
- "/(Avorion)/i" |
||||
|
"game: Ballistic Overkill": |
||||
|
- "/(Ballistic Overkill)/i" |
||||
|
"game: BATTALION: Legacy": |
||||
|
- "/(BATTALION: Legacy)/i" |
||||
|
"game: Barotrauma": |
||||
|
- "/(Barotrauma)/i" |
||||
|
"game: Counter-Strike: Global Offensive": |
||||
|
- "/(Counter-Strike: Global Offensive|CS:GO|csgo)/i" |
||||
|
"game: Counter-Strike 2": |
||||
|
- "/(Counter-Strike 2|CS2)/i" |
||||
|
"game: Counter-Strike: Source": |
||||
|
- "/(Counter-Strike: Source|CS:S)/i" |
||||
|
"game: Counter-Strike 1.6": |
||||
|
- "/(Counter-Strike 1.6|Counter Strike 1.6|CS 1.6|cs1.6)/i" |
||||
|
"game: Dayz": |
||||
|
- "/(Dayz)/i" |
||||
|
"game: Don't Starve Together": |
||||
|
- "/(Don't Starve Together|Dont Starve Together|DST)/i" |
||||
|
"game: Eco": |
||||
|
- "/(^Eco$)/i" |
||||
|
"game: Factorio": |
||||
|
- "/(Factorio)/i" |
||||
|
"game: Garry's Mod": |
||||
|
- "/(Garry's Mod|Garrys Mod|GMod)/i" |
||||
|
"game: Insurgency: Sandstorm": |
||||
|
- "/(Insurgency: Sandstorm|Insurgency)/i" |
||||
|
"game: Killing Floor 2": |
||||
|
- "/(Killing Floor 2|KF2)/i" |
||||
|
"game: Left 4 Dead 2": |
||||
|
- "/(Left 4 Dead 2|L4D2)/i" |
||||
|
"game: Minecraft": |
||||
|
- "/(Minecraft)((?!bedrock).)*$/i" |
||||
|
"game: Minecraft Bedrock": |
||||
|
- "/(Bedrock)/i" |
||||
|
"game: Mumble": |
||||
|
- "/(Mumble)/i" |
||||
|
"game: Project Zomboid": |
||||
|
- "/(Project Zomboid|PZ)/i" |
||||
|
"game: Quake 3": |
||||
|
- "/(Quake 3|Q3A|q3)/i" |
||||
|
"game: Rising World": |
||||
|
- "/(Rising World)/i" |
||||
|
"game: Satisfactory": |
||||
|
- "/(Satisfactory)/i" |
||||
|
"game: Squad": |
||||
|
- "/(Squad)/i" |
||||
|
"game: Starbound": |
||||
|
- "/(Starbound)/i" |
||||
|
"game: Stationeers": |
||||
|
- "/(Stationeers)/i" |
||||
|
"game: Teamspeak 3": |
||||
|
- "/(Teamspeak 3|ts3)/i" |
||||
|
"game: Rust": |
||||
|
- "/(Rust)/i" |
||||
|
"game: Unturned": |
||||
|
- "/(Unturned)/i" |
||||
|
"game: Unreal Tournament 99": |
||||
|
- "/(Unreal Tournament 99|ut99)/i" |
||||
|
"game: Unreal Tournament 2004": |
||||
|
- "/(Unreal Tournament 2004|ut2k4)/i" |
||||
|
"game: Unreal Tournament 3": |
||||
|
- "/(Unreal Tournament 3|ut3)/i" |
||||
|
"game: Valheim": |
||||
|
- "/(Valheim)/i" |
||||
|
|
||||
|
# Info |
||||
|
"info: alerts": |
||||
|
- "/(alert)/i" |
||||
|
"info: dependency": |
||||
|
- "/(dependency|deps)/i" |
||||
|
"info: docker": |
||||
|
- "/(docker)/i" |
||||
|
"info: docs": |
||||
|
- "/(documentation|^docs$)/i" |
||||
|
"info: email": |
||||
|
- "/(postfix|sendmail|exim|smtp)/i" |
||||
|
"info: query": |
||||
|
- "/(gamedig|gsquery)/i" |
||||
|
"info: steamcmd": |
||||
|
- "/(steamcmd)/i" |
||||
|
"info: systemd": |
||||
|
- "/(systemd)/i" |
||||
|
"info: tmux": |
||||
|
- "/(tmux)/i" |
||||
|
"info: website": |
||||
|
- "/(website)/i" |
||||
|
|
||||
|
# Type |
||||
|
"type: game server request": |
||||
|
- "/(Server Request)/i" |
||||
|
"type: bug": |
||||
|
- "/(bug)/i" |
||||
|
"type: feature request": |
||||
|
- "/(feature)/i" |
@ -1,38 +0,0 @@ |
|||||
# Configuration for Lock Threads - https://github.com/dessant/lock-threads |
|
||||
|
|
||||
# Number of days of inactivity before a closed issue or pull request is locked |
|
||||
daysUntilLock: 365 |
|
||||
|
|
||||
# Skip issues and pull requests created before a given timestamp. Timestamp must |
|
||||
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable |
|
||||
skipCreatedBefore: false |
|
||||
|
|
||||
# Issues and pull requests with these labels will be ignored. Set to `[]` to disable |
|
||||
exemptLabels: [] |
|
||||
|
|
||||
# Label to add before locking, such as `outdated`. Set to `false` to disable |
|
||||
lockLabel: false |
|
||||
|
|
||||
# Comment to post before locking. Set to `false` to disable |
|
||||
lockComment: > |
|
||||
This thread has been automatically locked since there has not been |
|
||||
any recent activity after it was closed. Please open a new issue for |
|
||||
related bugs. |
|
||||
|
|
||||
# Assign `resolved` as the reason for locking. Set to `false` to disable |
|
||||
setLockReason: false |
|
||||
|
|
||||
# Limit to only `issues` or `pulls` |
|
||||
# only: issues |
|
||||
|
|
||||
# Optionally, specify configuration settings just for `issues` or `pulls` |
|
||||
# issues: |
|
||||
# exemptLabels: |
|
||||
# - help-wanted |
|
||||
# lockLabel: outdated |
|
||||
|
|
||||
# pulls: |
|
||||
# daysUntilLock: 30 |
|
||||
|
|
||||
# Repository to extend settings from |
|
||||
# _extends: repo |
|
@ -1,10 +0,0 @@ |
|||||
# Configuration for probot-no-response - https://github.com/probot/no-response |
|
||||
|
|
||||
# Number of days of inactivity before an Issue is closed for lack of response |
|
||||
daysUntilClose: 60 |
|
||||
# Label requiring a response |
|
||||
responseRequiredLabel: "needs more info" |
|
||||
# Comment to post when closing an Issue for lack of response. Set to `false` to disable |
|
||||
closeComment: > |
|
||||
This issue has been automatically closed because there has been no response |
|
||||
to this issue and is now stale. |
|
@ -1,13 +0,0 @@ |
|||||
# Label name and color to set, when potential duplicates are detected |
|
||||
issueLabel: "duplicate" |
|
||||
labelColor: 579e01 |
|
||||
|
|
||||
# If similarity is higher than this threshold, issue will be marked as duplicate |
|
||||
threshold: 0.60 |
|
||||
|
|
||||
# Comment to post when potential duplicates are detected |
|
||||
referenceComment: > |
|
||||
Potential duplicates: |
|
||||
{{#issues}} |
|
||||
- [#{{ number }}] {{ title }} ({{ accuracy }}%) |
|
||||
{{/issues}} |
|
@ -1,4 +0,0 @@ |
|||||
template: | |
|
||||
## Changelog |
|
||||
|
|
||||
$CHANGES |
|
@ -1,4 +0,0 @@ |
|||||
# Configuration for top-issue-bot |
|
||||
labelName: ":thumbsup: Top Issue!" |
|
||||
labelColor: "f442c2" |
|
||||
numberOfIssuesToLabel: 5 |
|
@ -0,0 +1,18 @@ |
|||||
|
name: Add to Project |
||||
|
on: |
||||
|
issues: |
||||
|
types: |
||||
|
- opened |
||||
|
- labeled |
||||
|
|
||||
|
jobs: |
||||
|
add-to-project: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Add to Project |
||||
|
uses: actions/[email protected] |
||||
|
with: |
||||
|
project-url: https://github.com/orgs/GameServerManagers/projects/11 |
||||
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} |
||||
|
labeled: "type: game server request" |
@ -0,0 +1,25 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
curl "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${GITHUB_REF#refs/heads/}/lgsm/data/serverlist.csv" | grep -v '^[[:blank:]]*$' > serverlist.csv |
||||
|
|
||||
|
echo -n "{" > "shortnamearray.json" |
||||
|
echo -n "\"include\":[" >> "shortnamearray.json" |
||||
|
|
||||
|
while read -r line; do |
||||
|
shortname=$(echo "$line" | awk -F, '{ print $1 }') |
||||
|
export shortname |
||||
|
servername=$(echo "$line" | awk -F, '{ print $2 }') |
||||
|
export servername |
||||
|
gamename=$(echo "$line" | awk -F, '{ print $3 }') |
||||
|
export gamename |
||||
|
distro=$(echo "$line" | awk -F, '{ print $4 }') |
||||
|
export distro |
||||
|
echo -n "{" >> "shortnamearray.json" |
||||
|
echo -n "\"shortname\":" >> "shortnamearray.json" |
||||
|
echo -n "\"${shortname}\"" >> "shortnamearray.json" |
||||
|
echo -n "}," >> "shortnamearray.json" |
||||
|
done < <(tail -n +2 serverlist.csv) |
||||
|
sed -i '$ s/.$//' "shortnamearray.json" |
||||
|
echo -n "]" >> "shortnamearray.json" |
||||
|
echo -n "}" >> "shortnamearray.json" |
||||
|
rm serverlist.csv |
@ -0,0 +1,89 @@ |
|||||
|
# This action will check that LinuxGSM is picking up game server config and parameter variables. |
||||
|
name: Details Check |
||||
|
on: |
||||
|
workflow_dispatch: |
||||
|
push: |
||||
|
branches: |
||||
|
- develop |
||||
|
|
||||
|
concurrency: |
||||
|
group: details-check-${{ github.ref_name }} |
||||
|
cancel-in-progress: true |
||||
|
|
||||
|
jobs: |
||||
|
create-matrix: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
outputs: |
||||
|
matrix: ${{ steps.set-matrix.outputs.matrix }} |
||||
|
steps: |
||||
|
- name: Checkout |
||||
|
uses: actions/checkout@v4 |
||||
|
|
||||
|
- name: Generate matrix with generate-matrix.sh |
||||
|
run: chmod +x .github/workflows/details-check-generate-matrix.sh; .github/workflows/details-check-generate-matrix.sh |
||||
|
|
||||
|
- name: Set Matrix |
||||
|
id: set-matrix |
||||
|
run: | |
||||
|
shortnamearray=$(cat shortnamearray.json) |
||||
|
echo "${shortnamearray}" |
||||
|
echo -n "matrix=${shortnamearray}" >> $GITHUB_OUTPUT |
||||
|
|
||||
|
details-check: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
needs: create-matrix |
||||
|
continue-on-error: true |
||||
|
runs-on: ubuntu-latest |
||||
|
|
||||
|
strategy: |
||||
|
matrix: ${{ fromJSON(needs.create-matrix.outputs.matrix) }} |
||||
|
|
||||
|
steps: |
||||
|
- name: Download linuxgsm.sh |
||||
|
run: wget https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${GITHUB_REF#refs/heads/}/linuxgsm.sh; chmod +x linuxgsm.sh |
||||
|
|
||||
|
- name: Install dependencies |
||||
|
run: sudo apt-get install libxml2-utils jq |
||||
|
|
||||
|
- name: Create serverfiles directory |
||||
|
run: mkdir -p serverfiles |
||||
|
|
||||
|
- name: Grab server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./linuxgsm.sh ${{ matrix.shortname }}server |
||||
|
|
||||
|
- name: Enable developer mode |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server developer |
||||
|
|
||||
|
- name: Generate servercfgname |
||||
|
id: sets-servercfgname |
||||
|
run: | |
||||
|
servercfg=$(sed -n "/^\<servercfgdefault\>/ { s/.*= *\"\?\([^\"']*\)\"\?/\1/p;q }" lgsm/config-lgsm/${{ matrix.shortname }}server/_default.cfg) |
||||
|
echo "servercfgname=$servercfg" >> "$GITHUB_OUTPUT" |
||||
|
|
||||
|
- name: Download config |
||||
|
run: | |
||||
|
if [ "${{ steps.sets-servercfgname.outputs.servercfgname }}" == "" ]; then |
||||
|
echo "This game server has no config file." |
||||
|
else |
||||
|
curl -f -o config "https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/main/${{ matrix.shortname }}/${{ steps.sets-servercfgname.outputs.servercfgname }}" |
||||
|
fi |
||||
|
- name: Display config |
||||
|
run: | |
||||
|
if [ "${{ steps.sets-servercfgname.outputs.servercfgname }}" == "" ]; then |
||||
|
echo "This game server has no config file." |
||||
|
else |
||||
|
cat config |
||||
|
fi |
||||
|
|
||||
|
- name: Display parameters |
||||
|
run: grep "startparameters" lgsm/config-default/config-lgsm/${{ matrix.shortname }}server/_default.cfg |
||||
|
|
||||
|
- name: Details |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server details |
||||
|
|
||||
|
- name: Detect details |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server parse-game-details |
||||
|
|
||||
|
- name: Query Raw |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server query-raw |
@ -1,27 +1,27 @@ |
|||||
name: Backup Repo |
name: Github to Bitbucket Sync |
||||
# This action will sync the github repo with a backup bitbucket repo. |
# This action will sync the github repo with a backup bitbucket repo. |
||||
# This will allow LinuxGSM to use Bitbucket as and alternative download if github fails. |
# This will allow LinuxGSM to use Bitbucket as and alternative download if github fails. |
||||
on: |
on: |
||||
push: |
push: |
||||
branches: |
branches: |
||||
- master |
- master |
||||
- 'develop' |
- develop |
||||
|
|
||||
jobs: |
jobs: |
||||
repo-sync: |
gitHub-to-bitbucket: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
||||
steps: |
steps: |
||||
- name: ssh |
- name: SSH Agent |
||||
uses: webfactory/ssh-agent@v0.2.0 |
uses: webfactory/ssh-agent@v0.9.0 |
||||
with: |
with: |
||||
ssh-private-key: ${{ secrets.BITBUCKET_SECRET }} |
ssh-private-key: ${{ secrets.BITBUCKET_SECRET }} |
||||
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }} |
|
||||
|
|
||||
- name: repo-sync |
- name: Git Sync |
||||
uses: wei/git-sync@v2 |
uses: wei/git-sync@v3.0.0 |
||||
with: |
with: |
||||
|
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }} |
||||
source_repo: "https://github.com/GameServerManagers/LinuxGSM" |
source_repo: "https://github.com/GameServerManagers/LinuxGSM" |
||||
source_branch: "refs/heads/*" |
source_branch: "refs/heads/*" |
||||
destination_repo: "[email protected]:GameServerManagers/linuxgsm.git" |
destination_repo: "[email protected]:GameServerManagers/linuxgsm.git" |
||||
destination_branch: "refs/heads/*" |
destination_branch: "refs/heads/*" |
||||
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }} |
|
||||
|
@ -0,0 +1,32 @@ |
|||||
|
name: Issue Labeler |
||||
|
on: |
||||
|
issues: |
||||
|
types: |
||||
|
- opened |
||||
|
- edited |
||||
|
|
||||
|
permissions: |
||||
|
issues: write |
||||
|
contents: read |
||||
|
|
||||
|
jobs: |
||||
|
issue-labeler: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Issue Labeler |
||||
|
uses: github/[email protected] |
||||
|
with: |
||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
||||
|
configuration-path: .github/labeler.yml |
||||
|
enable-versioned-regex: 0 |
||||
|
include-title: 1 |
||||
|
|
||||
|
is-sponsor-label: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Is Sponsor Label |
||||
|
uses: JasonEtco/is-sponsor-label-action@v2 |
||||
|
env: |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@ -0,0 +1,26 @@ |
|||||
|
name: Lock Threads |
||||
|
on: |
||||
|
schedule: |
||||
|
- cron: "0 0 * * 1" |
||||
|
|
||||
|
permissions: |
||||
|
issues: write |
||||
|
pull-requests: write |
||||
|
|
||||
|
jobs: |
||||
|
lock: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Lock Threads |
||||
|
uses: dessant/lock-threads@v5 |
||||
|
with: |
||||
|
github-token: ${{ secrets.GITHUB_TOKEN }} |
||||
|
issue-comment: > |
||||
|
This issue has been automatically locked since there |
||||
|
has not been any recent activity after it was closed. |
||||
|
Please open a new issue for related bugs. |
||||
|
pr-comment: > |
||||
|
This pull request has been automatically locked since there |
||||
|
has not been any recent activity after it was closed. |
||||
|
Please open a new issue for related bugs. |
@ -0,0 +1,23 @@ |
|||||
|
name: Potential Duplicates |
||||
|
on: |
||||
|
issues: |
||||
|
types: |
||||
|
- opened |
||||
|
jobs: |
||||
|
potential-duplicates: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Potential Duplicates |
||||
|
uses: wow-actions/potential-duplicates@v1 |
||||
|
with: |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
filter: "" |
||||
|
exclude: "" |
||||
|
label: potential-duplicate |
||||
|
state: all |
||||
|
threshold: 0.8 |
||||
|
comment: > |
||||
|
Potential duplicates: {{#issues}} |
||||
|
- [#{{ number }}] {{ title }} ({{ accuracy }}%) |
||||
|
{{/issues}} |
@ -0,0 +1,40 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
cd "${datadir}" || exit |
||||
|
|
||||
|
echo "" |
||||
|
echo "Checking that all the game servers listed in serverlist.csv have a shortname-icon.png file" |
||||
|
for shortname in $(tail -n +2 serverlist.csv | cut -d ',' -f1); do |
||||
|
# check if $shortname-icon.png exists |
||||
|
if [ ! -f "gameicons/${shortname}-icon.png" ]; then |
||||
|
echo "ERROR: gameicons/${shortname}-icon.png does not exist" |
||||
|
exitcode=1 |
||||
|
else |
||||
|
echo "OK: gameicons/${shortname}-icon.png exists" |
||||
|
fi |
||||
|
done |
||||
|
|
||||
|
echo "" |
||||
|
echo "Checking if an unexpected gameicon exists" |
||||
|
for gameicon in $(ls -1 gameicons); do |
||||
|
# check if $gameicon is in serverlist.csv |
||||
|
if ! grep -q "${gameicon%-icon.png}" serverlist.csv; then |
||||
|
echo "ERROR: gameicon ${gameicon} is not in serverlist.csv" |
||||
|
exitcode=1 |
||||
|
else |
||||
|
echo "OK: gameicon ${gameicon} is in serverlist.csv" |
||||
|
fi |
||||
|
done |
||||
|
|
||||
|
echo "" |
||||
|
echo "Checking that the number of gameicons matches the number of servers in serverlist.csv" |
||||
|
gameiconcount="$(ls -1 gameicons | wc -l)" |
||||
|
serverlistcount="$(tail -n +2 serverlist.csv | wc -l)" |
||||
|
if [ "${gameiconcount}" -ne "${serverlistcount}" ]; then |
||||
|
echo "ERROR: game icons (${gameiconcount}) does not match serverlist.csv ($serverlistcount)" |
||||
|
exitcode=1 |
||||
|
else |
||||
|
echo "OK: gameiconcount ($gameiconcount) matches serverlistcount ($serverlistcount)" |
||||
|
fi |
||||
|
|
||||
|
exit ${exitcode} |
@ -0,0 +1,38 @@ |
|||||
|
#!/bin/bash |
||||
|
echo "Checking that all the game servers are listed in all csv files" |
||||
|
echo "this check will ensure serverlist.csv has the same number of lines (-2 lines) as the other csv files" |
||||
|
# count the number of lines in the serverlist.csv |
||||
|
cd "${datadir}" || exit |
||||
|
serverlistcount="$(tail -n +2 serverlist.csv | wc -l)" |
||||
|
echo "serverlistcount: $serverlistcount" |
||||
|
# get list of all csv files starting with ubunutu debian centos |
||||
|
csvlist="$(ls -1 | grep -E '^(ubuntu|debian|centos|rhel|almalinux|rocky).*\.csv$')" |
||||
|
# loop though each csv file and make sure the number of lines is the same as the serverlistcount |
||||
|
for csv in $csvlist; do |
||||
|
csvcount="$(wc -l < "${csv}")" |
||||
|
csvcount=$((csvcount - 2)) |
||||
|
if [ "$csvcount" -ne "$serverlistcount" ]; then |
||||
|
echo "ERROR: $csv ($csvcount) does not match serverlist.csv ($serverlistcount)" |
||||
|
exitcode=1 |
||||
|
else |
||||
|
echo "OK: $csv ($csvcount) and serverlist.csv ($serverlistcount) match" |
||||
|
fi |
||||
|
done |
||||
|
|
||||
|
# Compare all game servers listed in serverlist.csv to $shortname-icon.png files in ${datadir}/gameicons |
||||
|
# if the game server is listed in serverlist.csv then it will have a $shortname-icon.png file |
||||
|
|
||||
|
# loop though shortname in serverlist.csv |
||||
|
echo "" |
||||
|
echo "Checking that all the game servers listed in serverlist.csv have a shortname-icon.png file" |
||||
|
for shortname in $(tail -n +2 serverlist.csv | cut -d ',' -f1); do |
||||
|
# check if $shortname-icon.png exists |
||||
|
if [ ! -f "gameicons/${shortname}-icon.png" ]; then |
||||
|
echo "ERROR: gameicons/${shortname}-icon.png does not exist" |
||||
|
exitcode=1 |
||||
|
else |
||||
|
echo "OK: gameicons/${shortname}-icon.png exists" |
||||
|
fi |
||||
|
done |
||||
|
|
||||
|
exit ${exitcode} |
@ -0,0 +1,18 @@ |
|||||
|
name: Server List Validation |
||||
|
on: |
||||
|
workflow_dispatch: |
||||
|
push: |
||||
|
|
||||
|
jobs: |
||||
|
serverlist-validate: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Checkout |
||||
|
uses: actions/checkout@v4 |
||||
|
|
||||
|
- name: Compare Versions |
||||
|
run: chmod +x .github/workflows/serverlist-validate.sh; .github/workflows/serverlist-validate.sh |
||||
|
|
||||
|
- name: Validate Game Icons |
||||
|
run: chmod +x .github/workflows/serverlist-validate-game-icons.sh; .github/workflows/serverlist-validate-game-icons.sh |
@ -0,0 +1,33 @@ |
|||||
|
name: Trigger Docker Build |
||||
|
on: |
||||
|
release: |
||||
|
types: |
||||
|
- published |
||||
|
|
||||
|
jobs: |
||||
|
trigger_build_docker-linuxgsm: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
name: Trigger Build Docker LinuxGSM |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Trigger Workflow and Wait (linuxgsm) |
||||
|
uses: convictional/[email protected] |
||||
|
with: |
||||
|
owner: GameServerManagers |
||||
|
repo: docker-linuxgsm |
||||
|
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
||||
|
workflow_file_name: docker-publish.yml |
||||
|
|
||||
|
trigger_build_docker-gameserver: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
name: Trigger Build Docker GameServer |
||||
|
needs: trigger_build_docker-linuxgsm |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Trigger Workflow and Wait (gameserver) |
||||
|
uses: convictional/[email protected] |
||||
|
with: |
||||
|
owner: GameServerManagers |
||||
|
repo: docker-gameserver |
||||
|
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
||||
|
workflow_file_name: docker-publish.yml |
@ -0,0 +1,51 @@ |
|||||
|
name: Update Check |
||||
|
# This action will check that LinuxGSM is picking up game server config and parameter variables. |
||||
|
on: |
||||
|
workflow_dispatch: |
||||
|
push: |
||||
|
branches: |
||||
|
- develop |
||||
|
|
||||
|
concurrency: |
||||
|
group: update-check-${{ github.ref_name }} |
||||
|
cancel-in-progress: true |
||||
|
|
||||
|
jobs: |
||||
|
update-check: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
continue-on-error: true |
||||
|
runs-on: ubuntu-latest |
||||
|
|
||||
|
strategy: |
||||
|
matrix: |
||||
|
shortname: [css, fctr, jk2, mc, mcb, mta, pmc, ts3, ut99, vints] |
||||
|
|
||||
|
steps: |
||||
|
- name: Download linuxgsm.sh |
||||
|
run: wget https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/${GITHUB_REF#refs/heads/}/linuxgsm.sh; chmod +x linuxgsm.sh |
||||
|
|
||||
|
- name: Install dependencies |
||||
|
run: sudo dpkg --add-architecture i386; sudo apt-get update; |
||||
|
|
||||
|
- name: Grab server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./linuxgsm.sh ${{ matrix.shortname }}server |
||||
|
|
||||
|
- name: Enable developer mode |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server developer |
||||
|
|
||||
|
- name: Insert steamuser |
||||
|
if: matrix.shortname == 'jk2' |
||||
|
run: echo -e "steamuser=\"${{ secrets.STEAMCMD_USER }}\"\nsteampass='${{ secrets.STEAMCMD_PASS }}'" > lgsm/config-lgsm/${{ matrix.shortname }}server/common.cfg |
||||
|
|
||||
|
- name: Install server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server auto-install |
||||
|
|
||||
|
- name: Check Update server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server check-update |
||||
|
|
||||
|
- name: Update server |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server update |
||||
|
|
||||
|
- name: Force Update server |
||||
|
if: matrix.shortname == 'css' |
||||
|
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server force-update |
@ -0,0 +1,25 @@ |
|||||
|
name: Update copyright year(s) in license file |
||||
|
on: |
||||
|
workflow_dispatch: |
||||
|
schedule: |
||||
|
- cron: "0 3 1 1 *" # 03:00 AM on January 1 |
||||
|
|
||||
|
jobs: |
||||
|
update-license-year: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Checkout |
||||
|
uses: actions/checkout@v4 |
||||
|
with: |
||||
|
fetch-depth: 0 |
||||
|
- name: Action Update License Year |
||||
|
uses: FantasticFiasco/action-update-license-year@v3 |
||||
|
with: |
||||
|
token: ${{ secrets.GITHUB_TOKEN }} |
||||
|
path: LICENSE.md |
||||
|
- name: Merge pull request |
||||
|
env: |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
run: | |
||||
|
gh pr merge --merge --delete-branch |
@ -0,0 +1,15 @@ |
|||||
|
#!/bin/bash |
||||
|
version=$(grep "version=" linuxgsm.sh | sed -e 's/version//g' | tr -d '="') |
||||
|
modulesversion=$(grep "modulesversion=" lgsm/modules/core_modules.sh | sed -e 's/modulesversion//g' | tr -d '="') |
||||
|
|
||||
|
if [ "${version}" != "${modulesversion}" ]; then |
||||
|
echo "Error! LinuxGSM version mismatch" |
||||
|
echo "Version: ${version}" |
||||
|
echo "Modules Version: ${modulesversion}" |
||||
|
exit 1 |
||||
|
else |
||||
|
echo "Success! LinuxGSM version match" |
||||
|
echo "Version: ${version}" |
||||
|
echo "Modules Version: ${modulesversion}" |
||||
|
exit |
||||
|
fi |
@ -0,0 +1,17 @@ |
|||||
|
name: Version Check |
||||
|
on: |
||||
|
push: |
||||
|
|
||||
|
permissions: |
||||
|
contents: read |
||||
|
|
||||
|
jobs: |
||||
|
version-Check: |
||||
|
if: github.repository_owner == 'GameServerManagers' |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Checkout |
||||
|
uses: actions/checkout@v4 |
||||
|
|
||||
|
- name: Version Check |
||||
|
run: chmod +x .github/workflows/version-check.sh; .github/workflows/version-check.sh |
@ -1,4 +0,0 @@ |
|||||
# .github/write-good.yml |
|
||||
writeGood: true |
|
||||
alex: true |
|
||||
spellchecker: true |
|
@ -1,2 +1,2 @@ |
|||||
*.db |
.vscode/settings.json |
||||
.idea |
/node_modules |
||||
|
@ -0,0 +1,3 @@ |
|||||
|
{ |
||||
|
"plugins": ["prettier-plugin-sh"] |
||||
|
} |
@ -1,44 +0,0 @@ |
|||||
language: node_js |
|
||||
dist: bionic |
|
||||
node_js: |
|
||||
- "stable" |
|
||||
env: |
|
||||
global: |
|
||||
secure: VsS98cwJ5X/Ev3HEm7KEOPftYay+7jNTHepTS7d+gQNHcDR1UYKTmqlQNSIoUC52Ejs1cHq43jOfle4330zDPOYI0v5BMri6/iZKpmMxAw6KWNiUgSkziTP2kHC4NRLwEoU2WQTI3JZQjrBEfsPmD81+yR/eWXV3rph+YcSOxao= |
|
||||
|
|
||||
before_script: |
|
||||
- curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx |
|
||||
|
|
||||
install: |
|
||||
- npm install gamedig |
|
||||
|
|
||||
addons: |
|
||||
apt: |
|
||||
packages: |
|
||||
- mailutils |
|
||||
- postfix |
|
||||
- jq |
|
||||
- lib32gcc1 |
|
||||
- lib32stdc++6 |
|
||||
- shellcheck |
|
||||
- libcurl4-openssl-dev |
|
||||
- libdw-dev |
|
||||
- cmake |
|
||||
|
|
||||
jobs: |
|
||||
include: |
|
||||
- stage: "Jobs" |
|
||||
name: "code coverage" |
|
||||
script: bash tests/tests_kcov.sh; kcov --bash-method=DEBUG coverage tests/tests_mcserver.sh |
|
||||
- script: bash tests/tests_mcserver.sh |
|
||||
name: "Minecraft" |
|
||||
- script: bash tests/tests_jc2server.sh |
|
||||
name: "Just Cause 2" |
|
||||
- script: bash tests/tests_fctrserver.sh |
|
||||
name: "Factorio" |
|
||||
- script: bash tests/tests_ts3server.sh |
|
||||
name: "Teamspeak 3" |
|
||||
- script: bash tests/tests_defaultcfg/tests_defaultcfg.sh |
|
||||
name: "_default.cfg checks" |
|
||||
after_success: |
|
||||
- bash <(curl -Ls https://coverage.codacy.com/get.sh) |
|
@ -0,0 +1,10 @@ |
|||||
|
{ |
||||
|
"recommendations": [ |
||||
|
"ms-python.python", |
||||
|
"editorconfig.editorconfig", |
||||
|
"yzhang.markdown-all-in-one", |
||||
|
"esbenp.prettier-vscode", |
||||
|
"timonwong.shellcheck", |
||||
|
"redhat.vscode-yaml" |
||||
|
] |
||||
|
} |
@ -2,72 +2,131 @@ |
|||||
|
|
||||
## Our Pledge |
## Our Pledge |
||||
|
|
||||
In the interest of fostering an open and welcoming environment, we as |
We as members, contributors, and leaders pledge to make participation in our |
||||
contributors and maintainers pledge to making participation in our project and |
community a harassment-free experience for everyone, regardless of age, body |
||||
our community a harassment-free experience for everyone, regardless of age, body |
size, visible or invisible disability, ethnicity, sex characteristics, gender |
||||
size, disability, ethnicity, sex characteristics, gender identity and expression, |
identity and expression, level of experience, education, socio-economic status, |
||||
level of experience, education, socio-economic status, nationality, personal |
nationality, personal appearance, race, caste, color, religion, or sexual identity |
||||
appearance, race, religion, or sexual identity and orientation. |
and orientation. |
||||
|
|
||||
|
We pledge to act and interact in ways that contribute to an open, welcoming, |
||||
|
diverse, inclusive, and healthy community. |
||||
|
|
||||
## Our Standards |
## Our Standards |
||||
|
|
||||
Examples of behavior that contributes to creating a positive environment |
Examples of behavior that contributes to a positive environment for our |
||||
include: |
community include: |
||||
|
|
||||
* Using welcoming and inclusive language |
- Demonstrating empathy and kindness toward other people |
||||
* Being respectful of differing viewpoints and experiences |
- Being respectful of differing opinions, viewpoints, and experiences |
||||
* Gracefully accepting constructive criticism |
- Giving and gracefully accepting constructive feedback |
||||
* Focusing on what is best for the community |
- Accepting responsibility and apologizing to those affected by our mistakes, |
||||
* Showing empathy towards other community members |
and learning from the experience |
||||
|
- Focusing on what is best not just for us as individuals, but for the |
||||
|
overall community |
||||
|
|
||||
Examples of unacceptable behavior by participants include: |
Examples of unacceptable behavior include: |
||||
|
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or advances |
- The use of sexualized language or imagery, and sexual attention or |
||||
* Trolling, insulting/derogatory comments, and personal or political attacks |
advances of any kind |
||||
* Public or private harassment |
- Trolling, insulting or derogatory comments, and personal or political attacks |
||||
* Publishing others' private information, such as a physical or electronic address, without explicit permission |
- Public or private harassment |
||||
* Other conduct which could reasonably be considered inappropriate in a professional setting |
- Publishing others' private information, such as a physical or email |
||||
|
address, without their explicit permission |
||||
|
- Other conduct which could reasonably be considered inappropriate in a |
||||
|
professional setting |
||||
|
|
||||
## Our Responsibilities |
## Enforcement Responsibilities |
||||
|
|
||||
Project maintainers are responsible for clarifying the standards of acceptable |
Community leaders are responsible for clarifying and enforcing our standards of |
||||
behavior and are expected to take appropriate and fair corrective action in |
acceptable behavior and will take appropriate and fair corrective action in |
||||
response to any instances of unacceptable behavior. |
response to any behavior that they deem inappropriate, threatening, offensive, |
||||
|
or harmful. |
||||
|
|
||||
Project maintainers have the right and responsibility to remove, edit, or |
Community leaders have the right and responsibility to remove, edit, or reject |
||||
reject comments, commits, code, wiki edits, issues, and other contributions |
comments, commits, code, wiki edits, issues, and other contributions that are |
||||
that are not aligned to this Code of Conduct, or to ban temporarily or |
not aligned to this Code of Conduct, and will communicate reasons for moderation |
||||
permanently any contributor for other behaviors that they deem inappropriate, |
decisions when appropriate. |
||||
threatening, offensive, or harmful. |
|
||||
|
|
||||
## Scope |
## Scope |
||||
|
|
||||
This Code of Conduct applies both within project spaces and in public spaces |
This Code of Conduct applies within all community spaces, and also applies when |
||||
when an individual is representing the project or its community. Examples of |
an individual is officially representing the community in public spaces. |
||||
representing a project or community include using an official project e-mail |
Examples of representing our community include using an official e-mail address, |
||||
address, posting via an official social media account, or acting as an appointed |
posting via an official social media account, or acting as an appointed |
||||
representative at an online or offline event. Representation of a project may be |
representative at an online or offline event. |
||||
further defined and clarified by project maintainers. |
|
||||
|
|
||||
## Enforcement |
## Enforcement |
||||
|
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be |
Instances of abusive, harassing, or otherwise unacceptable behavior may be |
||||
reported by contacting the project team at [email protected]. All |
reported to the community leaders responsible for enforcement at |
||||
complaints will be reviewed and investigated and will result in a response that |
[INSERT CONTACT METHOD]. |
||||
is deemed necessary and appropriate to the circumstances. The project team is |
All complaints will be reviewed and investigated promptly and fairly. |
||||
obligated to maintain confidentiality with regard to the reporter of an incident. |
|
||||
Further details of specific enforcement policies may be posted separately. |
All community leaders are obligated to respect the privacy and security of the |
||||
|
reporter of any incident. |
||||
|
|
||||
|
## Enforcement Guidelines |
||||
|
|
||||
|
Community leaders will follow these Community Impact Guidelines in determining |
||||
|
the consequences for any action they deem in violation of this Code of Conduct: |
||||
|
|
||||
|
### 1. Correction |
||||
|
|
||||
|
**Community Impact**: Use of inappropriate language or other behavior deemed |
||||
|
unprofessional or unwelcome in the community. |
||||
|
|
||||
|
**Consequence**: A private, written warning from community leaders, providing |
||||
|
clarity around the nature of the violation and an explanation of why the |
||||
|
behavior was inappropriate. A public apology may be requested. |
||||
|
|
||||
|
### 2. Warning |
||||
|
|
||||
|
**Community Impact**: A violation through a single incident or series |
||||
|
of actions. |
||||
|
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good |
**Consequence**: A warning with consequences for continued behavior. No |
||||
faith may face temporary or permanent repercussions as determined by other |
interaction with the people involved, including unsolicited interaction with |
||||
members of the project's leadership. |
those enforcing the Code of Conduct, for a specified period of time. This |
||||
|
includes avoiding interactions in community spaces as well as external channels |
||||
|
like social media. Violating these terms may lead to a temporary or |
||||
|
permanent ban. |
||||
|
|
||||
|
### 3. Temporary Ban |
||||
|
|
||||
|
**Community Impact**: A serious violation of community standards, including |
||||
|
sustained inappropriate behavior. |
||||
|
|
||||
|
**Consequence**: A temporary ban from any sort of interaction or public |
||||
|
communication with the community for a specified period of time. No public or |
||||
|
private interaction with the people involved, including unsolicited interaction |
||||
|
with those enforcing the Code of Conduct, is allowed during this period. |
||||
|
Violating these terms may lead to a permanent ban. |
||||
|
|
||||
|
### 4. Permanent Ban |
||||
|
|
||||
|
**Community Impact**: Demonstrating a pattern of violation of community |
||||
|
standards, including sustained inappropriate behavior, harassment of an |
||||
|
individual, or aggression toward or disparagement of classes of individuals. |
||||
|
|
||||
|
**Consequence**: A permanent ban from any sort of public interaction within |
||||
|
the community. |
||||
|
|
||||
## Attribution |
## Attribution |
||||
|
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, |
This Code of Conduct is adapted from the [Contributor Covenant][homepage], |
||||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html |
version 2.1, available at |
||||
|
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. |
||||
|
|
||||
[homepage]: https://www.contributor-covenant.org |
Community Impact Guidelines were inspired by |
||||
|
[Mozilla's code of conduct enforcement ladder][mozilla coc]. |
||||
|
|
||||
For answers to common questions about this code of conduct, see |
For answers to common questions about this code of conduct, see the FAQ at |
||||
https://www.contributor-covenant.org/faq |
[https://www.contributor-covenant.org/faq][faq]. Translations are available |
||||
|
at [https://www.contributor-covenant.org/translations][translations]. |
||||
|
|
||||
|
[homepage]: https://www.contributor-covenant.org |
||||
|
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html |
||||
|
[mozilla coc]: https://github.com/mozilla/diversity |
||||
|
[faq]: https://www.contributor-covenant.org/faq |
||||
|
[translations]: https://www.contributor-covenant.org/translations |
||||
|
@ -5,35 +5,38 @@ |
|||||
The following is a set of guidelines for contributing to LinuxGSM, which are hosted in the [GameServerManagers Organization](https://github.com/gameservermanagers) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. |
The following is a set of guidelines for contributing to LinuxGSM, which are hosted in the [GameServerManagers Organization](https://github.com/gameservermanagers) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request. |
||||
|
|
||||
## Table of Contents |
## Table of Contents |
||||
* [Contributing to LinuxGSM](#contributing-to-linuxgsm) |
|
||||
* [Table of Contents](#table-of-contents) |
[Contributing to LinuxGSM](#contributing-to-linuxgsm) |
||||
* [Code of Conduct](#code-of-conduct) |
|
||||
* [Bug/Enhancement Contributions](#---bug-enhancement-contributions---) |
- [Table of Contents](#table-of-contents) |
||||
* [Reporting Bugs](#--reporting-bugs) |
- [Code of Conduct](#code-of-conduct) |
||||
* [Before Submitting A Bug Report](#before-submitting-a-bug-report) |
- [🎉 Bug/Enhancement Contributions 🐛](#bug-enhancement-contributions) |
||||
* [How Do I Submit A (Good) Bug Report?](#how-do-i-submit-a--good--bug-report-) |
- [🐛Reporting Bugs](#reporting-bugs) |
||||
* [Suggesting Features](#--suggesting-features) |
- [Before Submitting A Bug Report](#before-submitting-a-bug-report) |
||||
* [Before Submitting An Feature Suggestion](#before-submitting-an-feature-suggestion) |
- [How Do I Submit A (Good) Bug Report?](#how-do-i-submit-a--good--bug-report-) |
||||
* [How Do I Submit A (Good) Feature Suggestion?](#how-do-i-submit-a--good--feature-suggestion-) |
- [🎉Suggesting Features](#suggesting-features) |
||||
* [Game Server Requests](#---game-server-requests) |
- [Before Submitting An Feature Suggestion](#before-submitting-an-feature-suggestion) |
||||
* [Before Submitting a Game Server Request](#before-submitting-a-game-server-request) |
- [How Do I Submit A (Good) Feature Suggestion?](#how-do-i-submit-a--good--feature-suggestion-) |
||||
* [How Do I Submit A (Good) Game Server Suggestion?](#how-do-i-submit-a--good--feature-suggestion--1) |
- [🎮 Game Server Requests](#game-server-requests) |
||||
* [Game Server Specific Issues](#---game-server-specific-issues) |
- [Before Submitting a Game Server Request](#before-submitting-a-game-server-request) |
||||
* [Code Contributions](#---code-contributions) |
- [How Do I Submit A (Good) Game Server Request?](#how-do-i-submit-a--good--game-server-request-) |
||||
* [Pull Requests](#pull-requests) |
- [🎮 Game Server Specific Issues](#game-server-specific-issues) |
||||
* [Pull Request naming convention](#pull-request-naming-convention) |
- [💻 Code Contributions](#code-contributions) |
||||
* [Testing](#testing) |
- [Pull Requests](#pull-requests) |
||||
* [Pull Request Status Checks](#pull-request-status-checks) |
- [Pull Request naming convention](#pull-request-naming-convention) |
||||
* [Test Environment](#test-environment) |
- [Testing](#testing) |
||||
* [Styleguides](#-wine-glass--styleguides) |
- [Pull Request Status Checks](#pull-request-status-checks) |
||||
* [Git Commit Messages](#git-commit-messages) |
- [Test Environment](#test-environment) |
||||
* [BASH Styleguide](#bash-styleguide) |
- [:wine_glass: Styleguides](#-wine-glass--styleguides) |
||||
* [Document Contributions](#-blue-book--document-contributions) |
- [Git Commit Messages](#git-commit-messages) |
||||
* [Documentation Styleguide](#documentation-styleguide) |
- [BASH Styleguide](#bash-styleguide) |
||||
* [Issue and Pull Request Labels](#issue-and-pull-request-labels) |
- [:blue_book: Document Contributions](#-blue-book--document-contributions) |
||||
|
- [Documentation Styleguide](#documentation-styleguide) |
||||
|
- [Issue and Pull Request Labels](#issue-and-pull-request-labels) |
||||
|
|
||||
## Code of Conduct |
## Code of Conduct |
||||
|
|
||||
This project and everyone participating in it are governed by the [LinuxGSM Code of Conduct](https://github.com/GameServerManagers/linuxgsm/blob/master/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behaviour to [[email protected]](mailto:[email protected]). |
This project and everyone participating in it is governed by the [LinuxGSM Code of Conduct](https://github.com/GameServerManagers/linuxgsm/blob/master/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behaviour to [[email protected]](mailto:[email protected]). |
||||
|
|
||||
## 🎉 Bug/Enhancement Contributions 🐛 |
## 🎉 Bug/Enhancement Contributions 🐛 |
||||
|
|
||||
@ -41,25 +44,24 @@ This project and everyone participating in it are governed by the [LinuxGSM Code |
|||||
|
|
||||
This section guides you through submitting a bug report for LinuxGSM. Following these guidelines help maintainers and the community understand your report 📝, reproduce the behaviour💻, and find any related reports 🔎. |
This section guides you through submitting a bug report for LinuxGSM. Following these guidelines help maintainers and the community understand your report 📝, reproduce the behaviour💻, and find any related reports 🔎. |
||||
|
|
||||
Before creating bug reports, please check [this list](https://github.com/GameServerManagers/linuxgsm/blob/master/CONTRIBUTING.md#before-submitting-a-bug-report) as you might find out that you don’t need to create one. When you are creating a bug report, please [include as many details as possible](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report). Fill out [the required template](https://github.com/atom/.github/blob/master/.github/ISSUE_TEMPLATE/bug_report.md), the information it asks for helps us resolve issues faster. |
Before creating bug reports, please check [this list](https://github.com/GameServerManagers/linuxgsm/blob/master/CONTRIBUTING.md#before-submitting-a-bug-report) as you might find out that you don’t need to create one. When you are creating a bug report, please [include as many details as possible](https://github.com/GameServerManagers/linuxgsm/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report). Fill out [the required template](<[https://github.com/GameServerManagers/LinuxGSM/issues/new/choose](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose)>), the information it asks for helps us resolve issues faster. |
||||
|
|
||||
#### Before Submitting A Bug Report |
#### Before Submitting A Bug Report |
||||
|
|
||||
* **Check the** [**documentation**](https://docs.linuxgsm.com/%5D(https://docs.linuxgsm.com/))**.** You might be able to find the cause of the problem and fix things yourself. |
- **Check the [documentation](https://docs.linuxgsm.com).** You might be able to find the cause of the problem and fix things yourself. |
||||
* **Check that the problem is not related to** [**support page**](https://linuxgsm/com/support) for links to other support options. |
- **Check the** [**support page**](https://linuxgsm.com/support) for links to other support options. |
||||
* **Check the** [**support page**](https://linuxgsm/com/support) for links to other support options. |
- **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one. |
||||
* **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one. |
|
||||
|
|
||||
#### How Do I Submit A (Good) Bug Report? |
#### How Do I Submit A (Good) Bug Report? |
||||
|
|
||||
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose). |
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose). |
||||
|
|
||||
* **Use a clear and descriptive title** for the issue to identify the problem. |
- **Use a clear and descriptive title** for the issue to identify the problem. |
||||
* **Complete the user story** to give a summary of the issue. |
- **Complete the user story** to give a summary of the issue. |
||||
* **Provide basic info** to help us understand the context of the issue. |
- **Provide basic info** to help us understand the context of the issue. |
||||
* **Provide further info** to give specifics and more detail. |
- **Provide further info** to give specifics and more detail. |
||||
* **Give steps to reproduce** the issue, allowing developers to follow steps that lead to the issue. |
- **Give steps to reproduce** the issue, allowing developers to follow steps that lead to the issue. |
||||
* **Explain what you expect** to happen, so we know what you think should occur. |
- **Explain what you expect** to happen, so we know what you think should occur. |
||||
|
|
||||
### 🎉Suggesting Features |
### 🎉Suggesting Features |
||||
|
|
||||
@ -67,35 +69,42 @@ This section guides you through submitting a feature suggestion for LinuxGSM, in |
|||||
|
|
||||
#### Before Submitting An Feature Suggestion |
#### Before Submitting An Feature Suggestion |
||||
|
|
||||
* **Check the** [**documentation**](https://docs.linuxgsm.com/%5D(https://docs.linuxgsm.com/)) to confirm that the enhancement doesn’t already exist. |
- **Check the** [**documentation**](<https://docs.linuxgsm.com/%5D(https://docs.linuxgsm.com/)>) to confirm that the enhancement doesn’t already exist. |
||||
* **Check your** [**LinuxGSM version**](https://docs.linuxgsm.com/commands/update-lgsm)**.** A newer version of LinuxGSM may already have your enhancement. |
- **Check your** [**LinuxGSM version**](https://docs.linuxgsm.com/commands/update-lgsm)**.** A newer version of LinuxGSM may already have your enhancement. |
||||
* **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the enhancement has already been suggested. If it has **and the enhancement is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one. |
- **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the enhancement has already been suggested. If it has **and the enhancement is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one. |
||||
|
|
||||
#### How Do I Submit A (Good) Feature Suggestion? |
#### How Do I Submit A (Good) Feature Suggestion? |
||||
|
|
||||
Features are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose). |
Features are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose). |
||||
|
|
||||
* **Use a clear and descriptive title** for the issue to identify the problem. |
- **Use a clear and descriptive title** for the issue to identify the problem. |
||||
* **Complete the user story** to give a summary of the issue. |
- **Complete the user story** to give a summary of the issue. |
||||
* **Provide basic info** to help us understand the context of the enhancement. |
- **Provide basic info** to help us understand the context of the enhancement. |
||||
* **Provide further info** to give specifics and more detail. |
- **Provide further info** to give specifics and more detail. |
||||
* **Provide any further reading** materials that might assist in developing the enhancement. |
- **Provide any further reading** materials that might assist in developing the enhancement. |
||||
|
|
||||
### 🎮 Game Server Requests |
### 🎮 Game Server Requests |
||||
|
|
||||
This section guides you through submitting a game server request for LinuxGSM, Following these guidelines help maintainers and the community understand your game server request 📝 |
This section guides you through submitting a game server request for LinuxGSM, Following these guidelines help maintainers and the community understand your game server request 📝. |
||||
|
|
||||
#### Before Submitting a Game Server Request |
#### Before Submitting a Game Server Request |
||||
|
|
||||
* **Check for existing** [**game server requests**](https://github.com/GameServerManagers/LinuxGSM/labels/type%3A%20game%20server%20request) to see if the new game server has already been suggested. If it has **and if the new game server is still open**, give it a thumbs up instead of opening a new one. |
- **Check for existing** [**game server requests**](https://github.com/GameServerManagers/LinuxGSM/labels/type%3A%20game%20server%20request) to see if the new game server has already been suggested. If it has **and if the new game server is still open**, give it a thumbs up. |
||||
|
- **Check the game server is supported on Linux**, this does not include Wine servers which we do not support. |
||||
|
|
||||
|
#### How Do I Submit A (Good) Game Server Request? |
||||
|
|
||||
|
- The title should be as follows: **[Server Request] Game Name** |
||||
|
- **Provide Steam App ID** if applicable |
||||
|
- **Supply any documentation/how-to guides** for the game server. |
||||
|
|
||||
### 🎮 Game Server Specific Issues |
### 🎮 Game Server Specific Issues |
||||
|
|
||||
LinuxGSM is a management script that acts as a wrapper around game servers. These game servers are developed by different game developers such as Valve, Epic and Facepunch to name a few. |
LinuxGSM is a management script that acts as a wrapper around game servers. These game servers are developed by different game developers such as Valve, Epic and Facepunch to name a few. |
||||
|
|
||||
LinuxGSM has no control over the development and limited knowledge issues directly relating to the game servers themselves. The same also applies for any mods, add-ons, maps etc. |
LinuxGSM has no control over the development and limited knowledge of issues directly relating to the game servers themselves. The same also applies to any mods, add-ons, maps etc. |
||||
|
|
||||
If there is an issue with a specific game server or mod the best action may be to contact the game/mod developers on there support forums. If it is unclear some community members might be able to help. |
If there is an issue with a specific game server or mod the best action may be to contact the game/mod developers on their support forums. If it is unclear some community members should be able to help. |
||||
|
|
||||
A [list](https://docs.linuxgsm.com/support/game-server) of known game developer forums is available on the [LinuxGSM docs](https://docs.linuxgsm.com/support/game-server). |
A [list](https://docs.linuxgsm.com/support/game-server) of known game developer forums is available on the [LinuxGSM docs](https://docs.linuxgsm.com/support/game-server). |
||||
|
|
||||
@ -105,14 +114,14 @@ A [list](https://docs.linuxgsm.com/support/game-server) of known game developer |
|||||
|
|
||||
The process described here has several goals: |
The process described here has several goals: |
||||
|
|
||||
* Maintain LinuxGSM quality. |
- Maintain LinuxGSM quality. |
||||
* Fix problems that are important to users. |
- Fix problems that are important to users. |
||||
* Engage the community in working toward the best possible LinuxGSM. |
- Engage the community in working toward the best possible LinuxGSM. |
||||
* Enable a sustainable system for LinuxGSM maintainers to review contributions. |
- Enable a sustainable system for LinuxGSM maintainers to review contributions. |
||||
|
|
||||
Please follow these steps to have your contribution considered by the maintainers: |
Please follow these steps to have your contribution considered by the maintainers: |
||||
|
|
||||
1. Follow all instructions in [the template](https://github.com/GameServerManagers/LinuxGSM/blob/master/.github/pull_request_template.md) |
1. Follow all check-list in [the template](https://github.com/GameServerManagers/LinuxGSM/blob/master/.github/pull_request_template.md) |
||||
2. Follow the [style guides](#styleguides) |
2. Follow the [style guides](#styleguides) |
||||
3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing |
3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing |
||||
|
|
||||
@ -130,32 +139,35 @@ If applied, this commit will _your subject line here_ |
|||||
|
|
||||
For example: |
For example: |
||||
|
|
||||
* If applied, this commit will _refactor subsystem X for readability_ |
- If applied, this commit will **refactor subsystem X for readability** |
||||
* If applied, this commit will _update getting started documentation_ |
- If applied, this commit will **update getting started documentation** |
||||
* If applied, this commit will _remove deprecated methods_ |
- If applied, this commit will **remove deprecated methods** |
||||
* If applied, this commit will _release version 1.0.0_ |
- If applied, this commit will **release version 1.0.0** |
||||
* If applied, this commit will _merge pull request #123 from user/branch_ |
- If applied, this commit will **merge pull request #123 from user/branch** |
||||
|
|
||||
Notice how this doesn’t work for the other non-imperative forms: |
Notice how this doesn’t work for the other non-imperative forms: |
||||
|
|
||||
* If applied, this commit will _fixed bug with Y_ |
- If applied, this commit will **fixed bug with Y** |
||||
* If applied, this commit will _change the behaviour of X_ |
- If applied, this commit will **change the behaviour of X** |
||||
* If applied, this commit will _more fixes for broken stuff_ |
- If applied, this commit will **more fixes for broken stuff** |
||||
* If applied, this commit will _sweet new API methods_ |
- If applied, this commit will **sweet new API methods** |
||||
|
|
||||
Below is an example of the subject line for a pull request. |
Below is an example of the subject line for a pull request: |
||||
|
|
||||
feat(alerts): add slack support to alerts |
**feat(alerts): add slack support to alerts** |
||||
|
|
||||
fix(csgoserver): remove SteamCMD auth requirement 32-bit workaround |
**fix(csgoserver): remove SteamCMD auth requirement 32-bit workaround** |
||||
|
|
||||
### Testing |
### Testing |
||||
|
|
||||
#### Pull Request Status Checks |
#### Pull Request Status Checks |
||||
When a Pull Request is submitted, a series of status check tests are conducted. These tests will asses the code quality, complete CI tests etc. To get your PR merged these status checks must pass. |
|
||||
|
When a Pull Request is submitted, a series of status check tests are conducted. These tests will assess the code quality, complete CI tests etc. To get your PR merged these status checks must pass. |
||||
|
|
||||
#### Test Environment |
#### Test Environment |
||||
It is recommended that you have a testing environment available to test your code during development. To test your own cod you must change some variables within the `linuxgsm.sh` file. This will force the use of your own code branch. |
|
||||
|
It is recommended that you have a testing environment available to test your code during development. To test your own code you must change some variables within the `linuxgsm.sh` file. This will force the use of your own code branch. |
||||
|
|
||||
```bash |
```bash |
||||
## GitHub Branch Select |
## GitHub Branch Select |
||||
# Allows for the use of different function files |
# Allows for the use of different function files |
||||
@ -183,7 +195,7 @@ As well as code contributions it is possible to contribute by writing and improv |
|||||
|
|
||||
### Documentation Styleguide |
### Documentation Styleguide |
||||
|
|
||||
LinuxGSM has various documentation available to assist users and developers. LinuxGSM primarily uses [GitBook](http://gitbook.com/) which uses the [Markdown](https://www.markdownguide.org/) document standard. LinuxGSM uses [Codacy](https://app.codacy.com/manual/GameServerManagers/LinuxGSM/dashboard) to analyse any Pull Requests to give you feedback on markup standards. |
LinuxGSM has various documentation available to assist [users](https://docs.linuxgsm.com) and [developers](dev-docs.linuxgsm.com). LinuxGSM primarily uses [GitBook](http://gitbook.com/) which uses the [Markdown](https://www.markdownguide.org/) document standard. LinuxGSM uses [Codacy](https://app.codacy.com/manual/GameServerManagers/LinuxGSM/dashboard) to analyse any Pull Requests to give you feedback on markup standards. |
||||
|
|
||||
## Issue and Pull Request Labels |
## Issue and Pull Request Labels |
||||
|
|
||||
@ -192,16 +204,17 @@ This section lists the labels we use to help us track and manage issues and pull |
|||||
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. There are several categories of labels available: |
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. There are several categories of labels available: |
||||
|
|
||||
**command** Labels |
**command** Labels |
||||
Highlights the LinuxGSM command the Issue/PR relates too. |
Highlights the LinuxGSM command the Issue/PR relates to. |
||||
|
|
||||
**info** Labels |
**info** Labels |
||||
Labels to help pinpoint what the issue or PR relates too. |
Labels to help pinpoint what the issue or PR relates to. |
||||
|
|
||||
variants: |
variants: |
||||
* _distro_ |
|
||||
* _engine_ |
- _distro_ |
||||
* _game_ |
- _engine_ |
||||
* _info_ |
- _game_ |
||||
|
- _info_ |
||||
|
|
||||
**outcome** Labels |
**outcome** Labels |
||||
Labels that identify why an issue was closed. |
Labels that identify why an issue was closed. |
||||
|
@ -1,6 +1,6 @@ |
|||||
MIT License |
# The MIT License (MIT) |
||||
|
|
||||
Copyright (c) 2012-2020 Daniel Gibbs |
Copyright (c) 2012-2025 Daniel Gibbs |
||||
|
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
of this software and associated documentation files (the "Software"), to deal |
of this software and associated documentation files (the "Software"), to deal |
File diff suppressed because one or more lines are too long
@ -12,12 +12,8 @@ |
|||||
steamuser="username" |
steamuser="username" |
||||
steampass='password' |
steampass='password' |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-c ${servercfgfullpath}" |
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|
||||
fn_parms(){ |
|
||||
parms="-c ${servercfgfullpath}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +31,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +44,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +62,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -108,8 +110,12 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="302550" |
appid="302550" |
||||
|
steamcmdforcewindows="yes" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="false" |
||||
|
|
||||
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
# 1: tmux kill |
# 1: tmux kill |
||||
@ -122,16 +128,21 @@ branch="" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="5" |
querymode="5" |
||||
querytype="" |
querytype="assettocorsa" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
@ -155,7 +166,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -167,3 +178,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -12,7 +12,7 @@ |
|||||
steamuser="username" |
steamuser="username" |
||||
steampass='password' |
steampass='password' |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -20,10 +20,8 @@ sourcetvport="27020" |
|||||
defaultmap="act_airport" |
defaultmap="act_airport" |
||||
maxplayers="20" |
maxplayers="20" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game ahl2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game ahl2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -41,8 +39,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -53,18 +52,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -73,18 +70,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -111,6 +115,16 @@ ansi="on" |
|||||
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
sleeptime="0.5" |
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="985050" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
# 1: tmux kill |
# 1: tmux kill |
||||
# 2: CTRL+c |
# 2: CTRL+c |
||||
@ -122,24 +136,21 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## Console type |
||||
# Server appid |
consoleverbose="yes" |
||||
appid="985050" |
consoleinteract="yes" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
|
||||
branch="" |
|
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
|
||||
steammaster="true" |
|
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
@ -163,7 +174,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -175,3 +186,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="ahl_hydro" |
defaultmap="ahl_hydro" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game action -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} " |
||||
parms="-game action -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} " |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,9 +113,11 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
appidmod="cstrike" |
appidmod="cstrike" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,20 +132,25 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Action half-life" |
gamename="Action Half-Life" |
||||
engine="goldsrc" |
engine="goldsrc" |
||||
glibc="2.3.4" |
glibc="2.3.4" |
||||
|
|
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,19 +8,17 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="7777" |
port="7777" |
||||
queryport="27015" |
queryport="27015" |
||||
rconport="27020" |
# Default Map: TheIsland, Ragnarok, CrystalIsles, Aberration_P, ScorchedEarth_P, TheCenter, Extinction, Valguero_P, Genesis, Gen2 |
||||
# Default Map: TheIsland, Ragnarok, CrystalIsles, Aberration_P, ScorchedEarth_P |
|
||||
defaultmap="TheIsland" |
defaultmap="TheIsland" |
||||
maxplayers="70" |
altsavedirectoryname="${defaultmap}" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
## Game Server Docs | https://ark.wiki.gg/wiki/Server_configuration |
||||
parms="\"${defaultmap}?AltSaveDirectoryName=${defaultmap}?listen?MultiHome=${ip}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port} -automanagedmods\"" |
startparameters="${defaultmap}?AltSaveDirectoryName=${altsavedirectoryname} -MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -AutoManagedMods -Crossplay -PublicIPForEpic=${publicip}" |
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -38,8 +36,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -50,18 +49,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -70,18 +67,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -111,8 +115,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="376030" |
appid="376030" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -127,22 +133,27 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="no" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="ARK: Survival Evolved" |
gamename="ARK: Survival Evolved" |
||||
engine="unreal4" |
engine="unreal4" |
||||
glibc="2.15" |
glibc="2.17" |
||||
|
|
||||
#### Directories #### |
#### Directories #### |
||||
# Edit with care |
# Edit with care |
||||
@ -160,7 +171,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/Saved/Logs" |
gamelogdir="${systemdir}/Saved/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -172,3 +183,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -12,7 +12,7 @@ |
|||||
steamuser="username" |
steamuser="username" |
||||
steampass='password' |
steampass='password' |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="2302" |
port="2302" |
||||
|
|
||||
@ -31,10 +31,8 @@ servermods="" |
|||||
# Leave empty for default |
# Leave empty for default |
||||
bepath="" |
bepath="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory" |
||||
parms="-ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -52,8 +50,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -64,18 +63,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -84,18 +81,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -125,8 +129,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="233780" |
appid="233780" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -141,22 +147,27 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="ARMA 3" |
gamename="ARMA 3" |
||||
engine="realvirtuality" |
engine="realvirtuality" |
||||
glibc="2.13" |
glibc="2.27" |
||||
|
|
||||
#### Directories #### |
#### Directories #### |
||||
# Edit with care |
# Edit with care |
||||
@ -164,7 +175,7 @@ glibc="2.13" |
|||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${serverfiles}" |
executabledir="${serverfiles}" |
||||
executable="./arma3server" |
executable="./arma3server_x64" |
||||
servercfgdir="${systemdir}/cfg" |
servercfgdir="${systemdir}/cfg" |
||||
servercfg="${selfname}.server.cfg" |
servercfg="${selfname}.server.cfg" |
||||
servercfgdefault="server.cfg" |
servercfgdefault="server.cfg" |
||||
@ -178,7 +189,7 @@ networkcfgfullpath="${networkcfgdir}/${networkcfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
@ -189,3 +200,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,187 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
# https://community.bistudio.com/wiki/Arma_Reforger:Server_Hosting |
||||
|
# MaxFPS to limit the used Server resouces |
||||
|
maxfps="60" |
||||
|
|
||||
|
# Profile Name |
||||
|
serverprofile="server" |
||||
|
serverprofilefullpath="${serverfiles}/profiles/${serverprofile}" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-config ${servercfgfullpath} -profile ${serverprofilefullpath} -maxFPS ${maxfps}" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="5" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="1874900" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="false" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Arma Reforger" |
||||
|
engine="enfusion" |
||||
|
glibc="2.27" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}" |
||||
|
executabledir="${serverfiles}" |
||||
|
executable="./ArmaReforgerServer" |
||||
|
servercfgdir="${systemdir}" |
||||
|
servercfg="${selfname}_config.json" |
||||
|
servercfgdefault="server.json" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -0,0 +1,179 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-nosingle" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="2239530" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="4" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="American Truck Simulator" |
||||
|
engine="prism3d" |
||||
|
glibc="2.15" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}" |
||||
|
executabledir="${systemdir}/bin/linux_x64" |
||||
|
executable="./amtrucks_server" |
||||
|
servercfgdir="${HOME}/.local/share/American Truck Simulator" |
||||
|
servercfg="server_config.sii" |
||||
|
servercfgdefault="server_config.sii" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -7,18 +7,9 @@ |
|||||
# [instance].cfg - applies settings to a specific instance. |
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
|
||||
port="27000" |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
# https://steamidfinder.com |
startparameters="--galaxy-name ${selfname} --ip ${ip} --datapath ${avdatapath}" |
||||
adminsteamid="" |
|
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|
||||
fn_parms(){ |
|
||||
if [ ! -z "${adminsteamid}" ]; then |
|
||||
admincmd="--admin ${adminsteamid}" |
|
||||
fi |
|
||||
parms="--galaxy-name ${selfname} --ip ${ip} --datapath ${avdatapath} ${admincmd}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -27,6 +18,7 @@ parms="--galaxy-name ${selfname} --ip ${ip} --datapath ${avdatapath} ${admincmd} |
|||||
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
# (on|off) |
# (on|off) |
||||
stats="off" |
stats="off" |
||||
|
|
||||
## Notification Alerts |
## Notification Alerts |
||||
# (on|off) |
# (on|off) |
||||
|
|
||||
@ -35,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -104,11 +102,14 @@ ansi="on" |
|||||
|
|
||||
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
sleeptime="0.5" |
sleeptime="0.5" |
||||
|
|
||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="565060" |
appid="565060" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -123,17 +124,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="10" |
stopmode="10" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="5" |
querymode="1" |
||||
querytype="" |
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Avorion" |
gamename="Avorion" |
||||
@ -147,8 +153,8 @@ glibc="2.15" |
|||||
avdatapath="${serverfiles}/galaxy" |
avdatapath="${serverfiles}/galaxy" |
||||
avgalaxypath="${avdatapath}/${selfname}" |
avgalaxypath="${avdatapath}/${selfname}" |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${systemdir}" |
executabledir="${systemdir}/bin" |
||||
executable="./server.sh" |
executable="./bin/AvorionServer" |
||||
servercfgdir="${avgalaxypath}" |
servercfgdir="${avgalaxypath}" |
||||
servercfg="server.ini" |
servercfg="server.ini" |
||||
servercfgdefault="server.ini" |
servercfgdefault="server.ini" |
||||
@ -158,7 +164,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/ServerLogs" |
gamelogdir="${systemdir}/ServerLogs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -170,3 +176,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -21,10 +21,8 @@ maxplayers="20" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game brainbread2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game brainbread2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -42,8 +40,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -54,18 +53,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -74,18 +71,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -115,8 +119,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="475370" |
appid="475370" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -131,17 +137,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="BrainBread 2" |
gamename="BrainBread 2" |
||||
@ -164,7 +175,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -176,3 +187,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="bb_chp4_slaywatch" |
defaultmap="bb_chp4_slaywatch" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game brainbread -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game brainbread -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,9 +113,11 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
appidmod="cstrike" |
appidmod="cstrike" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="BrainBread" |
gamename="BrainBread" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="pve_tomb" |
defaultmap="pve_tomb" |
||||
maxplayers="3" |
maxplayers="3" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game bdef -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game bdef -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,8 +113,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="817300" |
appid="817300" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -125,17 +131,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Base Defense" |
gamename="Base Defense" |
||||
@ -158,7 +169,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -170,3 +181,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,10 +8,8 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+hostServer 1 +dedicated 1" |
||||
parms="+hostServer 1 +dedicated 1" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -29,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -41,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -61,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,16 +114,21 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-gamespy1" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="no" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
@ -143,7 +152,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -155,3 +164,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -7,12 +7,9 @@ |
|||||
# [instance].cfg - applies settings to a specific instance. |
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
# Use .ini config file for Mumble (Murmur) server. |
|
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+statusMonitor 1" |
||||
parms="-fg -ini ${servercfgfullpath}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -30,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -42,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -62,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -111,41 +114,46 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
stopmode="2" |
# 11: end |
||||
|
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="1" |
||||
querytype="mumbleping" |
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Mumble" |
gamename="Battlefield: Vietnam" |
||||
engine="null" |
engine="refractor" |
||||
glibc="null" |
glibc="2.2.4" |
||||
|
|
||||
#### Directories #### |
#### Directories #### |
||||
# Edit with care |
# Edit with care |
||||
|
|
||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${serverfiles}" |
executabledir="${systemdir}" |
||||
executable="./murmur.x86" |
executable="./start.sh" |
||||
servercfgdir="${systemdir}" |
servercfgdir="${systemdir}/mods/bfvietnam/settings" |
||||
servercfg="${selfname}.ini" |
servercfg="serversettings.con" |
||||
servercfgdefault="murmur.ini" |
servercfgdefault="serversettings.con" |
||||
servercfgfullpath="${servercfgdir}/${servercfg}" |
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
## Backup Directory |
## Backup Directory |
||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
#gamelogdir="" # No server logs available |
gamelogdir="${serverfiles}/mods/bfvietnam/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
@ -156,3 +164,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -21,10 +21,8 @@ maxplayers="16" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -42,8 +40,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -54,18 +53,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -74,18 +71,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -115,8 +119,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="346680" |
appid="346680" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -131,17 +137,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Black Mesa: Deathmatch" |
gamename="Black Mesa: Deathmatch" |
||||
@ -164,7 +175,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -176,3 +187,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -12,12 +12,9 @@ |
|||||
# GSLT can be used for running a public server. |
# GSLT can be used for running a public server. |
||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
ip="" |
|
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-batchmode -nographics -dedicated -configfile=${servercfgfullpath}" |
||||
parms="-batchmode -nographics -dedicated -configfile=${servercfgfullpath}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +32,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +45,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +63,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -108,8 +111,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="416880" |
appid="416880" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -124,17 +129,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Ballistic Overkill" |
gamename="Ballistic Overkill" |
||||
@ -147,7 +157,7 @@ glibc="2.15" |
|||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${serverfiles}" |
executabledir="${serverfiles}" |
||||
executable="./BODS.x86" |
executable="./BODS.x86_64" |
||||
servercfgdir="${systemdir}" |
servercfgdir="${systemdir}" |
||||
servercfg="${selfname}.txt" |
servercfg="${selfname}.txt" |
||||
servercfgdefault="config.txt" |
servercfgdefault="config.txt" |
||||
@ -157,7 +167,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -169,3 +179,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -12,7 +12,7 @@ |
|||||
steamuser="username" |
steamuser="username" |
||||
steampass='password' |
steampass='password' |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -25,10 +25,8 @@ maxplayers="16" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game "${serverfiles}/berimbau" -autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game "${serverfiles}/berimbau" -autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -46,8 +44,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -58,18 +57,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -78,18 +75,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -119,8 +123,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="228780" |
appid="228780" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -135,17 +141,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Blade Symphony" |
gamename="Blade Symphony" |
||||
@ -168,7 +179,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -180,3 +191,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,15 +8,13 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="7777" |
port="7777" |
||||
queryport="7780" |
queryport="7780" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-Port=${port} -QueryPort=${queryport} -BroadcastIp=${publicip} -log" |
||||
parms="/Game/Maps/Final_Maps/Derailed?Game=/Script/ShooterGame.WartideGameMode?listen -log -broadcastip=\"${extip}\" -PORT=${port} -QueryPort=${queryport} -defgameini=\"${servercfgfullpath}\"" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -34,8 +32,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -46,18 +45,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -66,18 +63,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -107,8 +111,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="805140" |
appid="805140" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -123,20 +129,25 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Battalion 1944" |
gamename="BATTALION: Legacy" |
||||
engine="unreal4" |
engine="unreal4" |
||||
glibc="2.17" |
glibc="2.17" |
||||
|
|
||||
@ -144,18 +155,19 @@ glibc="2.17" |
|||||
# Edit with care |
# Edit with care |
||||
|
|
||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}/Linux/Battalion" |
systemdir="${serverfiles}/Battalion" |
||||
executabledir="${systemdir}/Binaries/Linux" |
executabledir="${systemdir}/Binaries/Linux" |
||||
executable="./BattalionServer" |
executable="./BattalionServer-Linux-Shipping" |
||||
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
||||
servercfg="${selfname}.ini" |
servercfg="Game.ini" |
||||
servercfgdefault="DefaultGame.ini" |
servercfgdefault="Game.ini" |
||||
servercfgfullpath="${servercfgdir}/${servercfg}" |
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
## Backup Directory |
## Backup Directory |
||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/Saved/Logs" |
gamelogdir="${systemdir}/Saved/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -167,3 +179,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,10 +8,8 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="" |
||||
parms="" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -29,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -41,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -61,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -102,8 +106,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="1026340" |
appid="1026340" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -118,16 +124,21 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="7" |
stopmode="7" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="1" |
||||
querytype="protocol-valve" |
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
@ -151,7 +162,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/ServerLogs" |
gamelogdir="${systemdir}/ServerLogs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -163,3 +174,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="cbe_bunker" |
defaultmap="cbe_bunker" |
||||
maxplayers="6" |
maxplayers="6" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game cure -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game cure -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="383410" |
appid="383410" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Codename CURE" |
gamename="Codename CURE" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,187 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
ip="0.0.0.0" |
||||
|
port="1234" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-batchmode -ip ${ip} -port ${port} -datapath ${servercfgdir} -logfile ${gamelog}" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="1963720" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="no" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Core Keeper" |
||||
|
engine="unity3d" |
||||
|
glibc="2.15" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}" |
||||
|
executabledir="${serverfiles}" |
||||
|
preexecutable="xvfb-run" |
||||
|
executable="./CoreKeeperServer" |
||||
|
servercfgdir="${systemdir}/gamedata/${selfname}" |
||||
|
servercfg="ServerConfig.json" |
||||
|
servercfgdefault="ServerConfig.json" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
gamelogdir="${serverfiles}/logs" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
gamelog="${gamelogdir}/${selfname}-game.log" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,19 +8,14 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="7777" |
port="7777" |
||||
queryport="7779" |
queryport="7779" |
||||
defaultmap="AOCTD-Frigid_p" |
defaultmap="AOCTD-Frigid_p" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
startparameters="${defaultmap}?steamsockets -multihome=${ip} -Port=${port} -QueryPort=${queryport} -seekfreeloadingserver -configsubdir=${selfname} -log=${gamelog}" |
||||
fn_parms(){ |
|
||||
|
|
||||
parms="${defaultmap}?steamsockets -multihome=${ip} -Port=${port} -QueryPort=${queryport} -seekfreeloadingserver -configsubdir=${gamelogdir} -log=${gamelog}" |
|
||||
|
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -38,8 +33,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -50,18 +46,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -70,18 +64,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -111,8 +112,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="220070" |
appid="220070" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -127,17 +130,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Chivalry: Medieval Warfare" |
gamename="Chivalry: Medieval Warfare" |
||||
@ -146,6 +154,7 @@ glibc="2.15" |
|||||
|
|
||||
#### Directories #### |
#### Directories #### |
||||
# Edit with care |
# Edit with care |
||||
|
|
||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${systemdir}/Binaries/Linux" |
executabledir="${systemdir}/Binaries/Linux" |
||||
@ -159,7 +168,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/Saved/Logs" |
gamelogdir="${systemdir}/Saved/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -173,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,16 +8,14 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="28960" |
port="28960" |
||||
defaultmap="mp_leningrad" |
defaultmap="mp_leningrad" |
||||
maxplayers="20" |
maxplayers="20" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +map ${defaultmap} +exec ${servercfg}" |
||||
parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +exec ${servercfg} +map ${defaultmap}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +33,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +46,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +64,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Backup | https://docs.linuxgsm.com/commands/backup |
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
@ -113,17 +117,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-quake3" |
querytype="protocol-quake3" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Call of Duty 2" |
gamename="Call of Duty 2" |
||||
@ -146,7 +155,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -158,3 +167,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,16 +8,14 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="28960" |
port="28960" |
||||
defaultmap="mp_crossfire" |
defaultmap="mp_crossfire" |
||||
maxplayers="32" |
maxplayers="32" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set fs_homepath ${serverfiles} +set sv_authorizemode "-1" +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +map ${defaultmap} +exec ${servercfg}" |
||||
parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set fs_homepath ${serverfiles} +set sv_authorizemode "-1" +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +exec ${servercfg} +map ${defaultmap}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +33,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +46,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +64,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Backup | https://docs.linuxgsm.com/commands/backup |
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
@ -113,17 +117,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-quake3" |
querytype="protocol-quake3" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Call of Duty 4" |
gamename="Call of Duty 4" |
||||
@ -146,7 +155,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -158,3 +167,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,16 +8,14 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="28960" |
port="28960" |
||||
defaultmap="mp_neuville" |
defaultmap="mp_neuville" |
||||
maxplayers="20" |
maxplayers="20" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +map ${defaultmap} +exec ${servercfg}" |
||||
parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +exec ${servercfg} +map ${defaultmap}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +33,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +46,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +64,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Backup | https://docs.linuxgsm.com/commands/backup |
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
@ -113,17 +117,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-quake3" |
querytype="protocol-quake3" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Call of Duty" |
gamename="Call of Duty" |
||||
@ -146,7 +155,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -158,3 +167,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,16 +8,14 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="28960" |
port="28960" |
||||
defaultmap="mp_cassino" |
defaultmap="mp_cassino" |
||||
maxplayers="20" |
maxplayers="20" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +map ${defaultmap} +exec ${servercfg}" |
||||
parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +exec ${servercfg} +map ${defaultmap}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +33,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +46,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +64,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Backup | https://docs.linuxgsm.com/commands/backup |
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
@ -113,17 +117,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-quake3" |
querytype="protocol-quake3" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Call of Duty: United Offensive" |
gamename="Call of Duty: United Offensive" |
||||
@ -146,7 +155,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -158,3 +167,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,16 +8,14 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="28960" |
port="28960" |
||||
defaultmap="mp_castle" |
defaultmap="mp_castle" |
||||
maxplayers="20" |
maxplayers="20" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +map ${defaultmap} +exec ${servercfg}" |
||||
parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 2 +set net_ip ${ip} +set net_port ${port} +set sv_maxclients ${maxplayers} +exec ${servercfg} +map ${defaultmap}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -35,8 +33,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -47,18 +46,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -67,18 +64,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Backup | https://docs.linuxgsm.com/commands/backup |
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
@ -113,17 +117,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-quake3" |
querytype="protocol-quake3" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Call of Duty: World at War" |
gamename="Call of Duty: World at War" |
||||
@ -146,7 +155,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -158,3 +167,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,183 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
## https://colonysurvival.gamepedia.com/Dedicated_Server#Installation_.28Linux.29 |
||||
|
startparameters="-batchmode -nographics +server.config ${servercfgfullpath}" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="748090" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Colony Survival" |
||||
|
engine="unity3d" |
||||
|
glibc="2.15" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}" |
||||
|
executabledir="${serverfiles}" |
||||
|
executable="./colonyserver.x86_64" |
||||
|
servercfgdir="${systemdir}/gamedata/settings" |
||||
|
servercfg="${selfname}.json" |
||||
|
servercfgdefault="colserver.json" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
gamelogdir="${serverfiles}/gamedata/logs/server/" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
gamelog="${gamelogdir}/${selfname}-game.log" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -0,0 +1,192 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
# https://docs.linuxgsm.com/game-servers/counter-strike-2 |
||||
|
ip="0.0.0.0" |
||||
|
port="27015" |
||||
|
maxplayers="16" |
||||
|
wsapikey="" |
||||
|
|
||||
|
## Game Server Login Token (GSLT): Required |
||||
|
# GSLT is required for running a public server. |
||||
|
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
|
gslt="" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-dedicated -ip ${ip} -port ${port} -maxplayers ${maxplayers} -authkey ${wsapikey} +exec ${selfname}.cfg" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="730" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="9" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Counter-Strike 2" |
||||
|
engine="source2" |
||||
|
glibc="2.31" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}/game/csgo" |
||||
|
executabledir="${serverfiles}/game/bin/linuxsteamrt64" |
||||
|
executable="./cs2" |
||||
|
servercfgdir="${systemdir}/cfg" |
||||
|
servercfg="${selfname}.cfg" |
||||
|
servercfgdefault="server.cfg" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
gamelogdir="${systemdir}/logs" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="de_dust2" |
defaultmap="de_dust2" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,9 +113,11 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
appidmod="czero" |
appidmod="czero" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Counter-Strike: Condition Zero" |
gamename="Counter-Strike: Condition Zero" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,24 +8,35 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
# https://docs.linuxgsm.com/game-servers/counter-strike-global-offensive |
# https://docs.linuxgsm.com/game-servers/counter-strike-global-offensive |
||||
# [Game Modes] gametype gamemode mapgroup (you can mix these across all Game Modes except Danger Zone, but use only one) |
# [Game Modes] gametype gamemode gamemodeflags skirmishid mapgroup (you can mix these across all Game Modes except Danger Zone, but use only one) |
||||
# Arms Race 1 0 mg_armsrace |
# Arms Race 1 0 0 0 mg_armsrace |
||||
# Classic Casual 0 0 mg_casualsigma, mg_casualdelta |
# Boom! Headshot! 1 2 0 6 mg_skirmish_headshots |
||||
# Classic Competitive 0 1 mg_active, mg_reserves, mg_hostage, mg_de_dust2 |
# Classic Casual 0 0 0 0 mg_casualsigma, mg_casualdelta |
||||
# Custom 3 0 |
# Classic Competitive (Default) 0 1 0 0 mg_active, mg_reserves, mg_hostage, mg_de_dust2, ... |
||||
# Deathmatch 1 2 mg_deathmatch |
# Classic Competitive (Short Match) 0 1 32 0 mg_active, mg_reserves, mg_hostage, mg_de_dust2, ... |
||||
# Demolition 1 1 mg_demolition |
# Danger Zone 6 0 0 0 mg_dz_blacksite (map: dz_blacksite), mg_dz_sirocco (map: dz_sirocco) |
||||
# Wingman 0 2 |
# Deathmatch (Default) 1 2 0 0 mg_deathmatch |
||||
# Danger Zone 6 0 mg_dz_blacksite (map: dz_blacksite), mg_dz_sirocco (map: dz_sirocco) |
# Deathmatch (Free For All) 1 2 32 0 mg_deathmatch |
||||
|
# Deathmatch (Team vs Team) 1 2 4 0 mg_deathmatch |
||||
|
# Demolition 1 1 0 0 mg_demolition |
||||
|
# Flying Scoutsman 0 0 0 3 mg_skirmish_flyingscoutsman |
||||
|
# Hunter-Gatherers 1 2 0 7 mg_skirmish_huntergatherers |
||||
|
# Retakes 0 0 0 12 mg_skirmish_retakes |
||||
|
# Stab Stab Zap 0 0 0 1 mg_skirmish_stabstabzap |
||||
|
# Trigger Discipline 0 0 0 4 mg_skirmish_triggerdiscipline |
||||
|
# Wingman 0 2 0 0 mg_de_prime, mg_de_blagai, mg_de_vertigo, mg_de_inferno, mg_de_overpass, mg_de_cbble, mg_de_train, mg_de_shortnuke, mg_de_shortdust, mg_de_lake |
||||
gametype="0" |
gametype="0" |
||||
gamemode="0" |
gamemode="0" |
||||
|
gamemodeflags="0" |
||||
|
skirmishid="0" |
||||
mapgroup="mg_active" |
mapgroup="mg_active" |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
sourcetvport="27020" |
sourcetvport="27020" |
||||
|
steamport="26901" |
||||
defaultmap="de_mirage" |
defaultmap="de_mirage" |
||||
maxplayers="16" |
maxplayers="16" |
||||
tickrate="64" |
tickrate="64" |
||||
@ -41,10 +52,8 @@ wsapikey="" |
|||||
wscollectionid="" |
wscollectionid="" |
||||
wsstartmap="" |
wsstartmap="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_type ${gametype} +game_mode ${gamemode} +sv_game_mode_flags ${gamemodeflags} +sv_skirmish_id ${skirmishid} +host_workshop_collection ${wscollectionid} +workshop_start_map ${wsstartmap} -authkey ${wsapikey} -nobreakpad" |
||||
parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_type ${gametype} +game_mode ${gamemode} +host_workshop_collection ${wscollectionid} +workshop_start_map ${wsstartmap} -authkey ${wsapikey} -nobreakpad" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -62,8 +71,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -74,18 +84,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -94,18 +102,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -135,8 +150,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="740" |
appid="740" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -151,17 +168,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
stopmode="3" |
# 11: end |
||||
|
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Counter-Strike: Global Offensive" |
gamename="Counter-Strike: Global Offensive" |
||||
@ -184,7 +206,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -196,3 +218,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="de_dust2" |
defaultmap="de_dust2" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,9 +113,11 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
appidmod="cstrike" |
appidmod="cstrike" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Counter-Strike 1.6" |
gamename="Counter-Strike 1.6" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -21,10 +21,8 @@ maxplayers="16" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -42,8 +40,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -54,18 +53,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -74,18 +71,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -115,8 +119,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="232330" |
appid="232330" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -131,17 +137,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Counter-Strike: Source" |
gamename="Counter-Strike: Source" |
||||
@ -164,7 +175,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -176,3 +187,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,14 +8,8 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
ip="0.0.0.0" |
startparameters="-batchmode -showlogs" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|
||||
# Edit with care | https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master/SeriousSam3BFE/help/DedicatedServer_Readme.txt |
|
||||
fn_parms(){ |
|
||||
parms="+ip ${ip} +logfile ${gamelog} +exec ${servercfgfullpath}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -33,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -45,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -65,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -105,9 +105,11 @@ sleeptime="0.5" |
|||||
|
|
||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="41080" |
appid="1670340" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -122,41 +124,46 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
stopmode="2" |
# 11: end |
||||
|
stopmode="5" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="1" |
||||
querytype="protocol-valve" |
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Serious Sam 3: BFE" |
gamename="Craftopia" |
||||
engine="seriousengine35" |
engine="unity3d" |
||||
glibc="2.13" |
glibc="2.17" |
||||
|
|
||||
#### Directories #### |
#### Directories #### |
||||
# Edit with care |
# Edit with care |
||||
|
|
||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}/Bin" |
systemdir="${serverfiles}" |
||||
executabledir="${systemdir}" |
executabledir="${serverfiles}" |
||||
executable="./runSam3_DedicatedServer.sh" |
executable="./Craftopia.x86_64" |
||||
servercfgdir="${serverfiles}/Content/SeriousSam3/Config" |
servercfgdir="${systemdir}" |
||||
servercfg="${selfname}.ini" |
servercfg="ServerSetting.ini" |
||||
servercfgdefault="server.ini" |
servercfgdefault="ServerSetting.ini" |
||||
servercfgfullpath="${servercfgdir}/${servercfg}" |
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
## Backup Directory |
## Backup Directory |
||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${logdir}/server" |
#gamelogdir="${serverfiles}" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
gamelog="${gamelogdir}/${selfname}-game.log" |
gamelog="${gamelogdir}/${selfname}-game.log" |
||||
@ -166,6 +173,6 @@ alertlog="${lgsmlogdir}/${selfname}-alert.log" |
|||||
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
## Logs Naming |
## Logs Naming |
||||
|
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="da_rooftops" |
defaultmap="da_rooftops" |
||||
maxplayers="10" |
maxplayers="10" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="317800" |
appid="317800" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Double Action: Boogaloo" |
gamename="Double Action: Boogaloo" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,202 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## SteamCMD Login | https://docs.linuxgsm.com/steamcmd#steamcmd-login |
||||
|
steamuser="username" |
||||
|
steampass='password' |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
ip="0.0.0.0" |
||||
|
port="2302" |
||||
|
|
||||
|
## DayZ Modules |
||||
|
# Add mods with relative paths: |
||||
|
# mods/@cf |
||||
|
# To load the "Community framework for DayZ SA" module found in the |
||||
|
# directory serverfiles/mods/@cf. Load several mods as: |
||||
|
# mods="mods/@cf\;mods/@dayz-expansion\;mods/@deerisle" |
||||
|
mods="" |
||||
|
|
||||
|
## Server-side Mods |
||||
|
servermods="" |
||||
|
|
||||
|
## Path to BattlEye |
||||
|
# Leave empty for default |
||||
|
bepath="" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-ip=${ip} -port=${port} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -limitFPS=60 -dologs -adminlog -freezeCheck" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="5" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="223350" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="DayZ" |
||||
|
engine="enfusion" |
||||
|
glibc="2.27" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}" |
||||
|
executabledir="${serverfiles}" |
||||
|
executable="./DayZServer" |
||||
|
servercfgdir="${systemdir}/cfg" |
||||
|
servercfg="${selfname}.server.cfg" |
||||
|
servercfgdefault="server.cfg" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="dcdm5" |
defaultmap="dcdm5" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,9 +113,11 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
appidmod="dmc" |
appidmod="dmc" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Deathmatch Classic" |
gamename="Deathmatch Classic" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,186 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
servername="LinuxGSM" |
||||
|
ip="0.0.0.0" |
||||
|
port="7777" |
||||
|
queryport="27015" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -SteamServerName='${servername}' -log" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="1088320" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Day of Dragons" |
||||
|
engine="unreal4" |
||||
|
glibc="2.17" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}/Dragons" |
||||
|
executabledir="${systemdir}/Binaries/Linux" |
||||
|
executable="./DragonsServer-Linux-Shipping" |
||||
|
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
||||
|
servercfg="Game.ini" |
||||
|
servercfgdefault="Game.ini" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
gamelogdir="${systemdir}/Saved/Logs" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="dod_Anzio" |
defaultmap="dod_Anzio" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,9 +113,11 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
appidmod="dod" |
appidmod="dod" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Day of Defeat" |
gamename="Day of Defeat" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="dod_Anzio" |
defaultmap="dod_Anzio" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="232290" |
appid="232290" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Day of Defeat: Source" |
gamename="Day of Defeat: Source" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -17,10 +17,8 @@ defaultmap="bastogne stronghold" |
|||||
maxplayers="32" |
maxplayers="32" |
||||
tickrate="64" |
tickrate="64" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game doi -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -workshop -norestart" |
||||
parms="-game doi -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -workshop -norestart" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -38,8 +36,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -50,18 +49,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -70,18 +67,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -111,8 +115,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="462310" |
appid="462310" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -127,17 +133,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Day of Infamy" |
gamename="Day of Infamy" |
||||
@ -160,7 +171,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -172,3 +183,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,21 +8,18 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Installation Variables | https://docs.linuxgsm.com/game-servers/dont-starve-together |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
sharding="false" |
sharding="false" |
||||
master="true" |
master="true" |
||||
shard="Master" |
shard="Master" |
||||
cluster="Cluster_1" |
cluster="Cluster_1" |
||||
cave="false" |
cave="false" |
||||
|
|
||||
# Edit with care |
|
||||
persistentstorageroot="${HOME}/.klei" |
persistentstorageroot="${HOME}/.klei" |
||||
confdir="DoNotStarveTogether" |
confdir="DoNotStarveTogether" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-persistent_storage_root ${persistentstorageroot} -conf_dir ${confdir} -cluster ${cluster} -shard ${shard}" |
||||
parms="-persistent_storage_root ${persistentstorageroot} -conf_dir ${confdir} -cluster ${cluster} -shard ${shard}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -40,8 +37,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -52,18 +50,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -72,18 +68,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -113,8 +116,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="343050" |
appid="343050" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -129,17 +134,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="1" |
querymode="1" |
||||
querytype="" |
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Don't Starve Together" |
gamename="Don't Starve Together" |
||||
@ -166,7 +176,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -178,3 +188,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -21,10 +21,8 @@ maxplayers="16" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game "${serverfiles}/dystopia" -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game "${serverfiles}/dystopia" -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -42,8 +40,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -54,18 +53,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -74,18 +71,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -115,8 +119,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="17585" |
appid="17585" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -131,17 +137,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Dystopia" |
gamename="Dystopia" |
||||
@ -164,7 +175,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -176,3 +187,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,10 +8,8 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-nogui" |
||||
parms="-nogui" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -29,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -41,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -61,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -102,8 +106,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="739590" |
appid="739590" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -118,22 +124,27 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="1" |
querymode="3" |
||||
querytype="" |
querytype="eco" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Eco" |
gamename="Eco" |
||||
engine="unity3d" |
engine="unity3d" |
||||
glibc="null" |
glibc="2.15" |
||||
|
|
||||
#### Directories #### |
#### Directories #### |
||||
# Edit with care |
# Edit with care |
||||
@ -141,7 +152,7 @@ glibc="null" |
|||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${serverfiles}" |
executabledir="${serverfiles}" |
||||
executable="mono ./EcoServer.exe" |
executable="./EcoServer" |
||||
servercfgdir="${systemdir}/Configs" |
servercfgdir="${systemdir}/Configs" |
||||
servercfg="Network.eco" |
servercfg="Network.eco" |
||||
servercfgdefault="Network.eco" |
servercfgdefault="Network.eco" |
||||
@ -151,7 +162,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${logdir}/server" |
gamelogdir="${logdir}/server" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -164,3 +175,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,12 +8,12 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
sourcetvport="27020" |
sourcetvport="27020" |
||||
defaultmap="emp_district" |
defaultmap="con_district402" |
||||
maxplayers="62" |
maxplayers="62" |
||||
|
|
||||
## Game Server Login Token (GSLT): Optional |
## Game Server Login Token (GSLT): Optional |
||||
@ -21,10 +21,8 @@ maxplayers="62" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game empires -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game empires -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -42,8 +40,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -54,18 +53,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -74,18 +71,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -115,8 +119,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="460040" |
appid="460040" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -131,17 +137,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Empires Mod" |
gamename="Empires Mod" |
||||
@ -164,7 +175,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -176,3 +187,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,10 +8,8 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="+set net_strict 1 +set fs_homepath ${serverfiles} +exec ${servercfg}" |
||||
parms="+set net_strict 1 +set fs_homepath ${serverfiles} +exec ${servercfg}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -29,8 +27,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -41,18 +40,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -61,18 +58,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Backup | https://docs.linuxgsm.com/commands/backup |
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
@ -107,17 +111,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-quake3" |
querytype="protocol-quake3" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="ET: Legacy" |
gamename="ET: Legacy" |
||||
@ -140,7 +149,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}/Logs" |
gamelogdir="${serverfiles}/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -152,3 +161,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,179 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-nosingle" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="1948160" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="4" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Euro Truck Simulator 2" |
||||
|
engine="prism3d" |
||||
|
glibc="2.15" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}" |
||||
|
executabledir="${systemdir}/bin/linux_x64" |
||||
|
executable="./eurotrucks2_server" |
||||
|
servercfgdir="${HOME}/.local/share/Euro Truck Simulator 2" |
||||
|
servercfg="server_config.sii" |
||||
|
servercfgdefault="server_config.sii" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,18 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="34197" |
port="34197" |
||||
rconport="34198" |
rconport="34198" |
||||
rconpassword="CHANGE_ME" |
rconpassword="CHANGE_ME" |
||||
# (stable|experimental) |
branch="stable" # values: stable, experimental |
||||
branch="stable" |
|
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="--bind ${ip} --start-server ${serverfiles}/save1.zip --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}" |
||||
parms="--start-server ${serverfiles}/save1.zip --server-settings ${servercfgfullpath} --port ${port} --rcon-port ${rconport} --rcon-password ${rconpassword}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -118,17 +121,22 @@ sleeptime="0.5" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="1" |
querymode="1" |
||||
querytype="" |
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Factorio" |
gamename="Factorio" |
||||
@ -151,7 +159,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${serverfiles}" |
gamelogdir="${serverfiles}" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -163,3 +171,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="fof_depot" |
defaultmap="fof_depot" |
||||
maxplayers="20" |
maxplayers="20" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="295230" |
appid="295230" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Fistful of Frags" |
gamename="Fistful of Frags" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -18,24 +18,16 @@ maxplayers="16" |
|||||
tickrate="66" |
tickrate="66" |
||||
gamemode="sandbox" |
gamemode="sandbox" |
||||
|
|
||||
## Workshop Parameters | https://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers |
## Workshop Parameters | https://wiki.facepunch.com/gmod/Workshop_for_Dedicated_Servers |
||||
# To get an API key visit - https://steamcommunity.com/dev/apikey |
|
||||
wsapikey="" |
|
||||
wscollectionid="" |
wscollectionid="" |
||||
|
|
||||
## Custom Start Parameters |
|
||||
# Default -disableluarefresh, disables lua autorefresh reducing server lag. Auto refresh only useful for developers. |
|
||||
customparms="-disableluarefresh" |
|
||||
|
|
||||
## Game Server Login Token (GSLT): Optional |
## Game Server Login Token (GSLT): Optional |
||||
# GSLT can be used for running a public server. |
# GSLT can be used for running a public server. |
||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -disableluarefresh" |
||||
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -53,8 +45,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -65,18 +58,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -85,18 +76,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -126,8 +124,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="4020" |
appid="4020" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -142,17 +142,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Garry's Mod" |
gamename="Garry's Mod" |
||||
@ -176,7 +181,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -188,3 +193,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,195 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
defaultmap="KidsBedroom" |
||||
|
ip="0.0.0.0" |
||||
|
maxplayers="8" |
||||
|
port="7777" |
||||
|
queryport="27015" |
||||
|
servername="LinuxGSM" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="${defaultmap}?MaxPlayers=${maxplayers} -ServerName='${servername}' -Port=${port} -QueryPort=${queryport}" |
||||
|
|
||||
|
## Server Parameters for Plague mode |
||||
|
#startparameters="${defaultmap}?Game=PL?MapList=KidsBedroom,Garden,Hallway_Simple,Attic_Daytime,Garage,Shed,Kitchen,Hallway_Hard,ToyPalace,Bathroom?MaxPlayers=${maxplayers}?WeaponTypes=7?TimeLimit=600 -ServerName='${servername}' -Port=${port} -QueryPort=${queryport} -NOCONSOLE -unattended" |
||||
|
|
||||
|
## Server Parameters for Co-op mode |
||||
|
#startparameters="${defaultmap}?Difficulty=1?Game=WV?MapList=KidsBedroom?MaxPlayers=4 -ServerName='${servername}' -Port=${port} -QueryPort=${queryport} -NOCONSOLE -unattended" |
||||
|
|
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="5" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="1045940" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="false" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="1" |
||||
|
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="HYPERCHARGE: Unboxed" |
||||
|
engine="unreal4" |
||||
|
glibc="2.17" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}/Unboxed" |
||||
|
executabledir="${systemdir}/Binaries/Linux" |
||||
|
executable="./UnboxedServer-Linux-Shipping" |
||||
|
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
||||
|
servercfg="GameUserSettings.ini" |
||||
|
servercfgdefault="GameUserSettings.ini" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
gamelogdir="${systemdir}/Saved/Logs" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="dm_lockdown" |
defaultmap="dm_lockdown" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="232370" |
appid="232370" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Half Life 2: Deathmatch" |
gamename="Half Life 2: Deathmatch" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,17 +8,15 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
defaultmap="crossfire" |
defaultmap="crossfire" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -36,8 +34,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -48,18 +47,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -68,18 +65,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -109,8 +113,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="90" |
appid="90" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -125,17 +131,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="9" |
stopmode="9" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Half Life: Deathmatch" |
gamename="Half Life: Deathmatch" |
||||
@ -158,7 +169,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -170,3 +181,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="crossfire" |
defaultmap="crossfire" |
||||
maxplayers="16" |
maxplayers="16" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="255470" |
appid="255470" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="true" |
steammaster="true" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="true" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Half-Life Deathmatch: Source" |
gamename="Half-Life Deathmatch: Source" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,17 +8,16 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
servername="LinuxGSM Server" |
servername="LinuxGSM" |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="12871" |
port="12871" |
||||
queryport="12881" |
queryport="12881" |
||||
maxplayers="20" |
maxplayers="20" |
||||
defaultmap="" #Optional |
defaultmap="nullius" |
||||
creativemode="0" #Free Build: creativemode="1" |
creativemode="0" # values: Free Build = 1, Survival = 0 |
||||
gamelog="gamelog.txt" |
|
||||
|
|
||||
## Adding admins using STEAMID64 |
## Add admins using STEAMID64 |
||||
# Example : addadmin 012345678901234567; addadmin 987654321098765432 |
# Example : addadmin 012345678901234567; addadmin 987654321098765432 |
||||
admins="" |
admins="" |
||||
|
|
||||
@ -26,11 +25,9 @@ admins="" |
|||||
# Rollback server state (remove after start command) |
# Rollback server state (remove after start command) |
||||
loadsave="" |
loadsave="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
# Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server |
# http://hurtworld.wikia.com/wiki/Hosting_A_Server |
||||
fn_parms(){ |
startparameters="-batchmode -nographics -logfile ${gamelog} -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};addadmin ${admins}\"" |
||||
parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${gamelog}\" " |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -48,8 +45,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -60,18 +58,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -80,18 +76,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -121,8 +124,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="405100" |
appid="405100" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -137,17 +142,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="no" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Hurtworld" |
gamename="Hurtworld" |
||||
@ -160,13 +170,13 @@ glibc="2.15" |
|||||
## Game Server Directories |
## Game Server Directories |
||||
systemdir="${serverfiles}" |
systemdir="${serverfiles}" |
||||
executabledir="${serverfiles}" |
executabledir="${serverfiles}" |
||||
executable=$([ "$(uname -m)" == "x86_64" ] && echo -e "./Hurtworld.x86_64" || echo -e "./Hurtworld.x86") |
executable="./Hurtworld.x86_64" |
||||
|
|
||||
## Backup Directory |
## Backup Directory |
||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${logdir}/server" |
gamelogdir="${logdir}/server" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -180,3 +190,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
gamelogdate="${gamelogdir}/${selfname}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -0,0 +1,184 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
ip="0.0.0.0" |
||||
|
port="7777" |
||||
|
queryport="27015" |
||||
|
servername="LinuxGSM" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-log -port=${port} -queryport=${queryport} -steamservername=${servername}" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="5" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="2728330" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="linuxbranch" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="true" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="2" |
||||
|
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="no" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="HumanitZ" |
||||
|
engine="unreal4" |
||||
|
glibc="2.17" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}/TSSGame" |
||||
|
executabledir="${systemdir}/Binaries/Linux" |
||||
|
executable="./TSSGameServer-Linux-Shipping" |
||||
|
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
||||
|
servercfg="GameUserSettings.ini" |
||||
|
servercfgdefault="GameUserSettings.ini" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
|
gamelogdir="${systemdir}/Saved/Logs" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -22,10 +22,8 @@ tickrate="64" |
|||||
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
gslt="" |
gslt="" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -workshop -norestart" |
||||
parms="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} -tickrate ${tickrate} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} -workshop -norestart" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -43,8 +41,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -55,18 +54,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -75,18 +72,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -116,8 +120,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="237410" |
appid="237410" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -132,17 +138,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Insurgency" |
gamename="Insurgency" |
||||
@ -165,7 +176,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -177,3 +188,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,25 +8,25 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27102" |
port="27102" |
||||
queryport="27131" |
queryport="27131" |
||||
servername="LinuxGSM Server" |
rconport="27015" |
||||
serverpassword="" |
rconpassword="CHANGE_ME" |
||||
defaultmap="Canyon" |
servername="LinuxGSM" |
||||
defaultscenario="Scenario_Crossing_Push_Security" |
defaultmap="Oilfield" |
||||
|
defaultscenario="Scenario_Refinery_Push_Security" |
||||
maxplayers="28" |
maxplayers="28" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Game Server Login Token (GSLT): Optional |
||||
fn_parms(){ |
# GSLT can be used for running a public server. |
||||
# Allows serverpassword to work with parameters |
# More info: https://docs.linuxgsm.com/steamcmd/gslt |
||||
if [ "${serverpassword}" != "NOT SET" ]; then |
gslt="" |
||||
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport}?password="${serverpassword}" -hostname='${servername}' -log" |
|
||||
else |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?Port=${port}?QueryPort=${queryport} -hostname='${servername}' -log" |
## Game Server Docs | https://mod.io/g/insurgencysandstorm/r/server-admin-guide |
||||
fi |
startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers} -Port=${port} -QueryPort=${queryport} -hostname='${servername}' -Rcon -RconPassword=${rconpassword} -RconListenPort=${rconport} -GSLTToken=${gslt} -log" |
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -44,8 +44,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -56,18 +57,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -76,18 +75,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -117,10 +123,12 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="581330" |
appid="581330" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="true" |
||||
|
|
||||
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
# 1: tmux kill |
# 1: tmux kill |
||||
@ -133,17 +141,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="2" |
stopmode="2" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="Insurgency: Sandstorm" |
gamename="Insurgency: Sandstorm" |
||||
@ -157,16 +170,12 @@ glibc="2.17" |
|||||
systemdir="${serverfiles}/Insurgency" |
systemdir="${serverfiles}/Insurgency" |
||||
executabledir="${systemdir}/Binaries/Linux" |
executabledir="${systemdir}/Binaries/Linux" |
||||
executable="./InsurgencyServer-Linux-Shipping" |
executable="./InsurgencyServer-Linux-Shipping" |
||||
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
|
||||
servercfg="Game.ini" |
|
||||
servercfgdefault="Game.ini" |
|
||||
servercfgfullpath="${servercfgdir}/${servercfg}" |
|
||||
|
|
||||
## Backup Directory |
## Backup Directory |
||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/Saved/Logs" |
gamelogdir="${systemdir}/Saved/Logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -179,3 +188,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
@ -8,7 +8,7 @@ |
|||||
|
|
||||
#### Game Server Settings #### |
#### Game Server Settings #### |
||||
|
|
||||
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters |
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
ip="0.0.0.0" |
ip="0.0.0.0" |
||||
port="27015" |
port="27015" |
||||
clientport="27005" |
clientport="27005" |
||||
@ -16,10 +16,8 @@ sourcetvport="27020" |
|||||
defaultmap="8v8_vienna" |
defaultmap="8v8_vienna" |
||||
maxplayers="32" |
maxplayers="32" |
||||
|
|
||||
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
fn_parms(){ |
startparameters="-game iosoccer -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
||||
parms="-game iosoccer -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
||||
} |
|
||||
|
|
||||
#### LinuxGSM Settings #### |
#### LinuxGSM Settings #### |
||||
|
|
||||
@ -37,8 +35,9 @@ displayip="" |
|||||
|
|
||||
# More info | https://docs.linuxgsm.com/alerts#more-info |
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
postalert="off" |
postalert="off" |
||||
postdays="7" |
|
||||
posttarget="https://termbin.com" |
# Alert on Start/Stop/Restart |
||||
|
statusalert="off" |
||||
|
|
||||
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
discordalert="off" |
discordalert="off" |
||||
@ -49,18 +48,16 @@ emailalert="off" |
|||||
email="[email protected]" |
email="[email protected]" |
||||
emailfrom="" |
emailfrom="" |
||||
|
|
||||
|
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify |
||||
|
gotifyalert="off" |
||||
|
gotifytoken="token" |
||||
|
gotifywebhook="webhook" |
||||
|
|
||||
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
iftttalert="off" |
iftttalert="off" |
||||
ifttttoken="accesstoken" |
ifttttoken="accesstoken" |
||||
iftttevent="linuxgsm_alert" |
iftttevent="linuxgsm_alert" |
||||
|
|
||||
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
|
||||
mailgunalert="off" |
|
||||
mailguntoken="accesstoken" |
|
||||
mailgundomain="example.com" |
|
||||
mailgunemailfrom="[email protected]" |
|
||||
mailgunemail="[email protected]" |
|
||||
|
|
||||
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
pushbulletalert="off" |
pushbulletalert="off" |
||||
pushbullettoken="accesstoken" |
pushbullettoken="accesstoken" |
||||
@ -69,18 +66,25 @@ channeltag="" |
|||||
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
pushoveralert="off" |
pushoveralert="off" |
||||
pushovertoken="accesstoken" |
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
|
||||
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
slackalert="off" |
slackalert="off" |
||||
slackwebhook="webhook" |
slackwebhook="webhook" |
||||
|
|
||||
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". |
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need |
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help all". |
||||
# any custom string in curl - simple ignore this parameter. |
telegramapi="api.telegram.org" |
||||
telegramalert="off" |
telegramalert="off" |
||||
telegramtoken="accesstoken" |
telegramtoken="accesstoken" |
||||
telegramchatid="" |
telegramchatid="" |
||||
|
telegramthreadid="" |
||||
|
telegramsilentnotification="false" |
||||
curlcustomstring="" |
curlcustomstring="" |
||||
|
|
||||
## Updating | https://docs.linuxgsm.com/commands/update |
## Updating | https://docs.linuxgsm.com/commands/update |
||||
@ -110,8 +114,10 @@ sleeptime="0.5" |
|||||
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
# Server appid |
# Server appid |
||||
appid="673990" |
appid="673990" |
||||
|
steamcmdforcewindows="no" |
||||
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
branch="" |
branch="" |
||||
|
betapassword="" |
||||
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
steammaster="false" |
steammaster="false" |
||||
|
|
||||
@ -126,17 +132,22 @@ steammaster="false" |
|||||
# 8: 7 Days to Die |
# 8: 7 Days to Die |
||||
# 9: GoldSrc |
# 9: GoldSrc |
||||
# 10: Avorion |
# 10: Avorion |
||||
|
# 11: end |
||||
stopmode="3" |
stopmode="3" |
||||
|
|
||||
## Query mode |
## Query mode |
||||
# 1: session only |
# 1: session only |
||||
# 2: gamedig + gsquery |
# 2: gamedig (gsquery fallback) |
||||
# 3: gamedig |
# 3: gamedig |
||||
# 4: gsquery |
# 4: gsquery |
||||
# 5: tcp |
# 5: tcp |
||||
querymode="2" |
querymode="2" |
||||
querytype="protocol-valve" |
querytype="protocol-valve" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="yes" |
||||
|
|
||||
## Game Server Details |
## Game Server Details |
||||
# Do not edit |
# Do not edit |
||||
gamename="IOSoccer" |
gamename="IOSoccer" |
||||
@ -159,7 +170,7 @@ servercfgfullpath="${servercfgdir}/${servercfg}" |
|||||
backupdir="${lgsmdir}/backup" |
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
## Logging Directories |
## Logging Directories |
||||
logdir="${rootdir}/log" |
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log" |
||||
gamelogdir="${systemdir}/logs" |
gamelogdir="${systemdir}/logs" |
||||
lgsmlogdir="${logdir}/script" |
lgsmlogdir="${logdir}/script" |
||||
consolelogdir="${logdir}/console" |
consolelogdir="${logdir}/console" |
||||
@ -171,3 +182,7 @@ postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
|||||
## Logs Naming |
## Logs Naming |
||||
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
|
||||
|
## Log Parameters |
||||
|
logtimestamp="off" |
||||
|
logtimestampformat="%Y-%m-%d %H:%M:%S" |
||||
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue