|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Junior Member
Iscritto dal: Nov 2006
Messaggi: 4
|
ESECUZIONE AUTOMATICA
Ciao a tutti mi presento sono Riccardo e mi sto cimentando con suse.
Ho installato suse e piano piano sto cercando di capire come funziona, adesso sono riuscito a creare un server per giocare in rete con call of duty ma ho un piccolo problema ......avrei bisogno che si avviasse in automatico questo server quando accendo il computer la riga di comando è la seguente /home/callofduty/cod4/./cod4_lnxded +map mp_crash Mi potreste dire come posso fare ?? Ciao e grazie Ricky |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Feb 2006
Città: Parma
Messaggi: 3010
|
Avevo voglia di vedere come sono fatti gli script di avvio in Suse:
Codice:
#! /bin/sh # Check for missing binaries BIN=/home/callofduty/cod4/cod4_lnxded test -x $BIN || { echo "$BIN not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } case "$1" in start) echo -n "Starting Call of Duty 4 Server " ## Start daemon with startproc(8). If this fails ## the return value is set appropriately by startproc. startproc $BIN +map mp_crash # Remember status and be verbose rc_status -v ;; stop) echo -n "Shutting down Call of Duty 4 Server " ## Stop daemon with killproc(8) and if this fails ## killproc sets the return value according to LSB. killproc -TERM $BIN # Remember status and be verbose rc_status -v ;; restart) ## Stop the service and regardless of whether it was ## running or not, start it again. $0 stop $0 start # Remember status and be quiet rc_status ;; *) ## If no parameters are given, print which are avaiable. echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac
Però ci sono un paio di incognite...
__________________
~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 22:35.