AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Nemrun for SteamCMD Linux (https://forums.alliedmods.net/showthread.php?t=218555)

eric0279 07-11-2014 16:15

Re: Nemrun for SteamCMD Linux
 
Ok thanks

ph 07-13-2014 08:23

Re: Nemrun for SteamCMD Linux
 
For windows ?

Powerlord 07-13-2014 11:55

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by ph (Post 2166902)
For windows ?

Nemrun is Linux only.

To be clear, I didn't write Nemrun (Nephyrin did that), I just updated it to work with SteamCMD.

moxie2020 10-21-2014 02:10

Re: Nemrun for SteamCMD Linux
 
In the example there is some use of taskset. Can you explain how this works and if there is any use to it?

Powerlord 10-22-2014 11:27

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by moxie2020 (Post 2213813)
In the example there is some use of taskset. Can you explain how this works and if there is any use to it?

taskset is used to control which cores a server can use. It can be handy if you're running multiple servers from the same machine.

However, by the same token, TF2 and DOTA's replay systems can do things on other threads, so limiting those to a single CPU forces it to do that processing on the same CPU core.

Side note: CPU cores are 0-numbered, so a 4 core processor has cores 0-3. Of course, to specify core numbers, you use the -c argument to taskset... it's a lot easier than using bitmasks.

Powerlord 11-17-2014 11:12

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by Chdata (Post 2224795)
tbh I have no idea what nemrun is meant to do. It's able to only do update checks / validate when the server actually needs to? ;o

Except I looked at it at a time where I had a headache.

OK, here's my current test server configuration. Note that it could probably be optimized more by making the server use sv_shutdown to do a delayed restart instead of its normal shutdown command.

Spoiler

Chdata 01-20-2015 00:38

Re: Nemrun for SteamCMD Linux
 
Can I have an example of a 'unified' steamCMD script?

Because currently I use something like...

vsh_dis.txt
Code:

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir ../vsh
app_update 232250 validate
exit

And there's another one for each of my other two servers that only changes the folder.

Also I'm just going to assume one first executes 'tf2_updater.sh' and then 'prophunt_server.sh' or 'whatever.sh' for all of one's servers?

And from there this thing handles autoupdating them... or not going through a full file check if there's no need to?

Also... I don't see anything that shuts down the server in what you posted? No kill or quit or exit or restart or shutdown command seems to be in the snippet you posted.

Chdata awaits the day his question is answered clearly.

Powerlord 01-20-2015 09:39

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by Chdata (Post 2251306)
Can I have an example of a 'unified' steamCMD script?

Because currently I use something like...

vsh_dis.txt
Code:

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir ../vsh
app_update 232250 validate
exit

And there's another one for each of my other two servers that only changes the folder.

Also I'm just going to assume one first executes 'tf2_updater.sh' and then 'prophunt_server.sh' or 'whatever.sh' for all of one's servers?

And from there this thing handles autoupdating them... or not going through a full file check if there's no need to?

Also... I don't see anything that shuts down the server in what you posted? No kill or quit or exit or restart or shutdown command seems to be in the snippet you posted.

Chdata awaits the day his question is answered clearly.

nemrun is intended to be used with screen. The -sharedscreens argument is a comma-separated list of named screens (-S in the screen command-line) that it should send a "quit" command to. Since these screens were presumably also started with nemrun, they will auto-restart when they get the quit command.

Do note that it's possible to run a custom shell script instead using the -shutdownscript command-line argument or change which command is sent to servers using -sharedkillcommand .

dedimark 03-16-2016 11:44

Re: Nemrun for SteamCMD Linux
 
delete


All times are GMT -4. The time now is 12:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.