Forum

ASSIST, AMERICA'S ARMY COMMUNITY - RELIVE THE GLORY DAYS OF AMERICA'S ARMY 2.5

Author Topic: How to make the game server open all the time?  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline zibi

How to make the game server open all the time?
« on: Tuesday, April 28, 2020, 07:26:39 AM »
Hello,

I have made an server. But I have problem because I was setting server through SSH (PuTTy), everything working but for this server to work all the time I need to have PuTTy running in the background. After turning PuTTy off, the server shuts down. How to set it so that the server works all the time.

The server was set up on VPS Linux
Polish Server: 185.243.54.49:1716 Oldschool Boy

Offline teddy_grizzly_bear

  • Used to be known as nobody
  • Administrator
  • Epic Poster
  • *
  • Posts: 5,457
  • what are you looking at?
    • View Profile
  • AA: teddy_grizzIy_bear
Re: How to make the game server open all the time?
« Reply #1 on: Tuesday, April 28, 2020, 07:58:14 AM »
Look into tmux or screen.


"Mathematics may be defined as the subject in which we never know what we are talking about, nor whether what we are saying is true." Bertrand Russell

Offline hitman

Re: How to make the game server open all the time?
« Reply #2 on: Tuesday, April 28, 2020, 10:14:24 AM »
Look into tmux or screen.

At first I thought so too, but now I use systemd service, which makes it a breeze to stop start restart the server. Also view the log real time.

Put this in /etc/systemd/system/aao25.service

Code: [Select]
[Unit]
Description=America's Army

[Service]
ExecStart=<path to your server-bin> GLOBAL <mapname>


Then just:
Code: [Select]
sudo systemctl start aao25
To view the log:
Code: [Select]
sudo journalctl -u aao25

Offline zibi

Re: How to make the game server open all the time?
« Reply #3 on: Tuesday, April 28, 2020, 12:22:38 PM »
I cannot find can you put me here all source by cd /sample/sample/sample ?

edit/// ok I found but there is no such file like aao25.service
« Last Edit: Tuesday, April 28, 2020, 12:55:31 PM by zibi »

Offline hitman

Re: How to make the game server open all the time?
« Reply #4 on: Tuesday, April 28, 2020, 14:05:41 PM »
I cannot find can you put me here all source by cd /sample/sample/sample ?

edit/// ok I found but there is no such file like aao25.service

You need to create it with the code that I gave you inside as a text. You can use "nano" to do it like so:
Code: [Select]
sudo nano /etc/systemd/system/aao25.service
Then you need to know the path to your AA installation and choose a map. After you finish editing the file, save it and I think you should restart server, don't remember exactly.

Offline Possessed

  • bWpnRecoil == False;
  • Administrator
  • Epic Poster
  • *
  • Posts: 3,587
  • You suffer, but why?!
    • View Profile
  • AA: Possessed
Re: How to make the game server open all the time?
« Reply #5 on: Tuesday, April 28, 2020, 16:34:27 PM »
simple exemple of how to run a server from putty shell and leave it running in the background, even after you close the putty window:
Code: [Select]
server-bin GLOBAL Bridge &>/dev/null &add
Code: [Select]
&>/dev/null & to the end of the command and the program will run in the brackground.
you might have to add
Code: [Select]
disown after the command, if running from a shell script.
« Last Edit: Tuesday, April 28, 2020, 16:37:26 PM by Possessed »
These things I have spoken unto you, that in me ye might have peace. In the world ye shall have tribulation: but be of good cheer; I have overcome the world.
John 16:33


 

Download Assist

×

Download Game Client

Important: Battletracker no longer exists. However, old Battletracker accounts may still work. You can create a new 25Assist account here

Download Server Manager