title: How can I run this script automatically on startup
body: <p>I have a game server on my VPS, but i have a strong problem. When it reboots(for technical reasons or something) the game server doesn't start automatically. I use this script, which is located in /home/steam/csgo-ds:</p>
  
  <pre><code>#!/bin/sh
  ln -s /home/steam/csgo-ds/csgo/*.dem /var/www/html/
  ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
  cd /home/steam/csgo-ds
  chmod 777 * -R
  screen -S "CS:GO Server" ./srcds_run -game csgo -usercon +game_type 0 +game_mode 0 -tickrate 64 -maxplayers 24 -maxplayers_override 24 +ip 188.116.46.148 -port 27015 +sv_setsteamaccount "XXXXX" -exec server.cfg +tv_enable 1 +tv_maxclients 0 +tv_port 27020 +tv_advertise_watchable 0 +map jb_dust2_final2
  </code></pre>
  
  <p>I have tried adding it to crontab, startup files and a lot more and nothing worked.
  Operating system on the VPS is Ubuntu Server 64-bit 14.04 upgraded to 16.04</p>