Counter-Strike : Global Offensive Server Launcher Read more

branch: master
Switch branches/tags
Nothing to show
README.md

Counter-Strike : Global Offensive Server Launcher

A simple script to launch your Counter-Strike : Global Offensive Dedicated Server. Tested on Debian and Ubuntu.

Installation

Before running the script, you must change some variables.

  • SCREEN_NAME - The screen name, you can put what you want but it must be unique and must contain only alphanumeric character.
  • USER - Name of the user who started the server.
  • IP - Your WAN IP address.
  • DIR_STEAMCMD - Path to steamcmd.
  • STEAM_LOGIN - Your steam account username.
  • STEAM_PASSWORD - Your steam account password.
  • STEAM_RUNSCRIPT - Name of the script that steamcmd should execute for autoupdate. This file is created on the fly, you don't normally need to change this variable.
  • DIR_GAME - Path to the game.
  • DIR_LOGS - Directory of game's logs.
  • DAEMON_GAME - You don't normally need to change this variable.
  • UPDATE_LOG - The update log file name.
  • UPDATE_EMAIL - Mail address where the update's logs are sent. Leave empty to disable sending mail.
  • UPDATE_RETRY - Number of retries in case of failure of the update.
  • PARAM_START - Launch settings server.
  • PARAM_UPDATE - Update settings server.

Usage

For the console mod, press CTRL+A then D to stop the screen without stopping the server.

  • start - Start the server with the PARAM_START var in a screen.
  • stop - Stop the server and close the screen loaded.
  • status - Display the status of the server (screen down or up)
  • restart - Restart the server (stop && start)
  • console - Display the server console where you can enter commands.
  • update - Update the server based on the PARAM_UPDATE then save the log file in LOG_DIR and send an e-mail to LOG_EMAIL if the var is filled.

Automatic update with cron

You can automatically update your game server by calling the script in a crontab. Just add this line in your crontab and change the folder if necessary.

0 4 * * * cd /var/steamcmd/ && ./csgo update >/dev/null 2>&1

This will update your server every day at 4 am.

More infos

http://www.crazyws.fr/tutos/installer-un-serveur-counter-strike-global-offensive-X4LCM.html



Markdown Cheat Sheet

Format Text

Headers

# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag

Text styles

*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__

*You **can** combine them*

Lists

Unordered

* Item 1
* Item 2
  * Item 2a
  * Item 2b

Ordered

1. Item 1
2. Item 2
3. Item 3
   * Item 3a
   * Item 3b

Miscellaneous

Images

![GitHub Logo](/images/logo.png)
Format: ![Alt Text](url)

Links

http://github.com - automatic!
[GitHub](http://github.com)

Blockquotes

As Kanye West said:

> We're living the future so
> the present is our past.

Code Examples in Markdown

Syntax highlighting with GFM

```javascript
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}
```

Or, indent your code 4 spaces

Here is a Python code example
without syntax highlighting:

    def foo:
      if not bar:
        return true

Inline code for comments

I think you should use an
`<addr>` element here instead.
Something went wrong with that request. Please try again.

Looking for the GitHub logo?