Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CallofDuty4 script per il server dedicato
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
Alakhai
Apprentice
Apprentice


Joined: 16 Oct 2003
Posts: 151

PostPosted: Wed Feb 13, 2008 6:58 pm    Post subject: CallofDuty4 script per il server dedicato Reply with quote

Ciao ragazzi oggi mi sono imbattuto nell'istallazione di un server dedicato casalingo di callofduty4 e ovviamente non è che la casa produttrice ci fornisce già gli script di start e stop del demone in linux; così me lo sono fatto da solo. Vi posto il mio script così da poterlo migliorare insieme e per condividerlo con voi, amanti dei videogames e non :)
Spero che cmq possa esservi utile.

Premessa:
-E' sempre bene eseguire dei demoni con i priv da utente così che un hacker, con un bug qualsiasi del programma, non possa prendere i priv da root
così prima di fare lo script date prima un bel:
Code:
 
useradd -m -g users gamesd


Code:

#!/sbin/runscript

depend() {
  need net
}

start() {
ebegin "Starting Call Of Duty 4 server"
   export HOME=/home/gamesd
   start-stop-daemon --quiet --start -c gamesd --user gamesd --make-pidfile /var/run/cod4server.pid --pidfile /var/run/cod4server.pid --exec /opt/CallofDuty4-ModernWarfare/cod4_lnxded -- +set loc_language 3 +set dedicated 2 +set sv_pure 1 +map_rotate 2> /dev/null &
   export HOME=/root
  eend $?
}

stop() {
  ebegin "Stopping Call Of Duty 4 server"
   start-stop-daemon --stop -c gamesd --user gamesd --exec /opt/CallofDuty4-ModernWarfare/cod4_lnxded
   eend $?
}


_________________
Gentoo Linux 64Bit User


Last edited by Alakhai on Fri Feb 15, 2008 3:35 pm; edited 2 times in total
Back to top
View user's profile Send private message
Frez
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 166

PostPosted: Thu Feb 14, 2008 3:01 pm    Post subject: Reply with quote

grazie, mi tornerà utile per tirar su il srv di ET:QuakeWars :roll: :)
visto che il gioco gira benone (e nativamente :twisted: ) sotto linux


Comunque mi fa sempre un po' arrabbiare il fatto che esistano fior di server per linux, mentre sono pochissimi i client (cioè il gioco)
_________________
There is one more thing ... it's been emotional
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sat Feb 16, 2008 1:25 pm    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
Ciao da me!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum