Hi,
This a correction of /etc/init.d/tremulous-server
It's for the package 1.1.0-2 (on Debian/Testing for me)
Bad version of function tremulous_start():
tremulous_start() {
if [ -f $PIDFILE ]; then
return 2
fi
start-stop-daemon --start --quiet --pidfile $PIDFILE --oknodo \
--background --exec $DAEMON --make-pidfile --chuid nobody \
-- $DAEMON_OPTS &> /dev/null || return 1
return 0
}
Good version
tremulous_start() {
if [ -f $PIDFILE ]; then
return 2
else
start-stop-daemon --start --quiet --pidfile $PIDFILE --oknodo \
--background --exec $DAEMON --make-pidfile --chuid nobody \
-- $DAEMON_OPTS &> /dev/null || return 1
fi
return 0
}
Bye.
Salokine
I don't know under which circumstances one would even think about starting any game via init.d.
The correct way to do that would be via 'screen' so the process can be better controlled.
As for this redundant 'else' statement, what exactly was your problem?
Posting this w/o any explanation might lead newbies in the wrong direction and produce more questions than necessary.
Quote from: CavemanI don't know under which circumstances one would even think about starting any game via init.d.
if tremulous is on a remote server...
That is exactly why one would use 'screen' instead of init.d.
With screen the process can be separated and attached to a login as needed.
Init.d should only be used to start demons not services or games.
Quote from: CavemanThat is exactly why one would use 'screen' instead of init.d.
With screen the process can be separated and attached to a login as needed.
Init.d should only be used to start demons not services or games.
i don't see how the tremulous server differs from any other daemon