.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old July 1st, 2012, 12:25 PM

GenericOverusedName GenericOverusedName is offline
Private
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
GenericOverusedName is on a distinguished road
Default Re: Linux Admining

Quote:
Originally Posted by Gandalf Parker View Post
Well I can give you an answer for Linux test-mode...

Here is an example script from my system of an actual game..
Code:
nohup nice dom3 --era 2 -g Warhammergoons --port 28911 -STddd \
--statfile --scoredump -q --hours 48 \
--preexec /home/domgames/dominions3/savedgames/Warhammergoons/pre.sh \
--postexec /home/domgames/dominions3/savedgames/Warhammergoons/post.sh \
--renaming --hofsize 15 \
--enablemod Expanded_Nations_1_v1_02.dm --masterpass xxxxxx \
--mapfile Streamlands_8P_warhammer.map \
 >/home/domgames/dominions3/savedgames/Warhammergoons/game.log \
 2>/home/domgames/dominions3/savedgames/Warhammergoons/game.err &
Some of the non-Dom3 elements are
nohup: No Hangup command so I can log off without the game dying
nice: so it doesnt hog the CPU
&: the ampersand at the very end of the script is what tells it to run in background

a common error is running it & (background) but forgetting nohup (no hangup) so when you logoff, it dies
Why not use screen? Or does it take up too much resources?
Reply With Quote
The Following User Says Thank You to GenericOverusedName For This Useful Post:
Reply

Bookmarks

Tags
admin, automation, command line, hosting, linux, script, server, switches

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.