Jump to content
Sign in to follow this  
brightness

Linux server issues

Recommended Posts

OTHERPARAMS=-cpucount=2

OTHERPARAMS=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

i think it's quit simple... OTHERPARAMS declared twice ...:butbut:

Try

OTHERPARAMS=-cpucount=2

OTHERPARAMSACE=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

See ya

Share this post


Link to post
Share on other sites

there is no limit on how many 'OTHERPARAMS' declarations.

OTHERPARAMSACE=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

Will not work.

...Syn...

Share this post


Link to post
Share on other sites

try

MOD="@ace;@acex;@acex_usnavy;@ace_ru;@ace _sm;@cba;@acre;@jayarma2lib"

this is instead of

OTHERPARAMSACE=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

and add (in red)

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -mod=${MOD} ${OTHERPARAMS} -cfg=arma2oa.cfg

Edited by Overlord

Share this post


Link to post
Share on other sites

@ VisceralSyn:

----------------------------------------------------------

OTHERPARAMSACE=-mod=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib

Will not work......

-----------------------------------------------------------

... is quiet nonsense! :yay:

using ${OTHERPARAMACE} or something ever else in script works fine

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -cfg=${CFG} ${OTHERPARAMS} ${OTHERPARAMSACE}

--------------------------------------------------------------------------

params1=x

params2=y

params3=... dta ->>

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -cfg=${CFG} ${params1} ${params2} ${params3}

....

NOT!!

OTHERPARAMS=XXXX

OTHERPARAMS=YYYY

Share this post


Link to post
Share on other sites

Your 'quiet nonsese' is quite not making any sense.

But if you say it works for you, I'm just not goin ta smoke from the pot, you are smoking from.

...Syn...

---------- Post added at 11:15 AM ---------- Previous post was at 11:12 AM ----------

I also do not edit the 'Watchdog' Section of the script. I edit the script where it says to perform editing.

#================================================= ======================

#======== CONFIGURATION PARAMETERS ========

#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========

#================================================= ======================

ARMA_DIR=/home/alwandy CONFIG=server.cfg PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS=-cpucount=1

OTHERPARAMS='-mod=@ace;@acex;@acex_ru;@acex_sm;@acex_usnavy;@cba;@acre;@jayarma2lib'

#=======================================================================

There is not a limit to how many extra 'OTHERPARMS' declarations. You could do one for each mod if you want, the above is just cleaner.

Edited by VisceralSyn
typos and other grammatical errors

Share this post


Link to post
Share on other sites
I also do not edit the 'Watchdog' Section of the script. I edit the script where it says to perform editing.

Then your mods won't be loaded if server crash....

Share this post


Link to post
Share on other sites

Erm, incorrect...

It re-reads the script restarting the server. What makes you think it would not re-read the script, after a crash? Hell, that's half the reason for the script!

...Syn...

Edited by VisceralSyn
Dang gumbed typos....

Share this post


Link to post
Share on other sites

Afik Watchdog do what "he's" told to do in "Watchdog section" of script, just start server again (if it dies).

If it's no extra mods listed, I doubt he'll load'em either. Not tested this myself, have hard time crashing server (no bragging, it's just how it is).

Anyway, I added it. From OFP times, mods just had to be listed there if you wanted server online again, we still talk about Lin servers I guess?

Share this post


Link to post
Share on other sites

Since the documentation for configuring the Linux deddy server is vague. There is a lot of hit and miss. I've never had the 'Watchdog' not re-read the entire script, and yes, that means it reloads mods with the server.

Not a 'AFIK'

...Syn...

Share this post


Link to post
Share on other sites

Something like:

OTHERPARAMS='-cpucount=2 -exThreads=1 -mod=@cba;@ace;@acex;@acex_pla;@acex_sm'

is good enough. Single quotes and put in whats normal. Also check that "server" is not already running by opening System Monitor and looking under Processes.

EDIT: brightness, download my GUI from my sig or pm me your email an I'll email it to you if you don't want to login etc.

Edited by Rexxenexx

Share this post


Link to post
Share on other sites

Don't wanna claim astronomical knowledge to Linux or AA2 DS, but remove MOD parameters, and tell me where WD load'em from?

watchdog)

# this is a background watchdog process. Do not start directly

while [ -f ${RUNFILE} ]; do

# launch the server...

cd ${ARMA_DIR}

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -mod=${MOD} ${OTHERPARAMS}

if [ -f ${RUNFILE} ]; then

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."

sleep 5s

else

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"

fi

done

Script is clear enough (in my blue eyes), it reads your config file and {OTHERPARAMS}, but no mods (if not added).

If you add OTHERPARAMS1 and OTHERPARAMS2, you still need to add them here, and the WD section is editet again....

@brightness

I don't run ACE myself, but why is it necessary to load it twice (even if it would work)?

MOD=@ace\;@ace\;@acex\;@acex_usnavy\;@ace_ru\;@ace _sm\;@cba\;@acre\;@jayarma2lib\;
Edited by Overlord

Share this post


Link to post
Share on other sites

The default watchdog script:

watchdog)

# this is a background watchdog process. Do not start directly

while [ -f ${RUNFILE} ]; do

# launch the server...

cd ${ARMA_DIR}

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} ${OTHERPARAMS} -cfg=arma2oa.cfg

if [ -f ${RUNFILE} ];

a correct OTHERPARAMS line is read by the script, at ${OTHERPARAMS}, if that section of the script is configured correctly. Then the script reads the OTHERPARAMS every time. No need to junk up the script, adding stuff all willy-nilly.

The mod line that was being used, was an example. After several copy and pastes, formatting has added spaces, and doubles.. etc...

...Syn...

Edited by VisceralSyn
typos and other grammatical errors, as usual...

Share this post


Link to post
Share on other sites

I agree with your line of thought VisceralSyn, it's a good way to configure server. On the other hand, it still requite, as you point out, a correct OTHERPARAMS line.

The mod-entry ain't that complicated, along with other stuff I add to the script, it works just perfectly well. As I said I'm no Wizard in either Linux or AA2, but it's not that complicated to edit the scrip.

Of course you must know what you are doing (as you sounds like), so I'm tempted to vote for your solution for "newbies", as they can leave the broad part of startscript unchanged.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×