Tremulous Forum
Community => Servers => Topic started by: rotacak on June 19, 2007, 10:49:54 am
-
Hi,
is possible server window and commandline window minimize to tray after server start?
Thanx for reply
-
Umm are you asking how to minimize the blue console screen's when you run a server ?
-
Yes. Minimize to tray.
-
Why would you want to?
Its called a dedicated server for a reason...
-
I dont want have two item in taskbar.
-
Why not?
It makes it easier to find when you need to do stuff to it.
Surely your screen isn't that small that two items full the bar?
-
I dont want have two item in taskbar.
Are you running the server off the home network?
Cause if not why are you worried about having it in a tray?
But I am sure its a home network, sorry I just had to put my comment.
-
Server should be in friend office. Computer is not often use, but when yes, then can be server closed by mistake, when will be on taskbar.
-
Well if computer is not often used, then why are you worried about it? Yes I understand closed by mistake, but if you really want to keep the server from being closed by mistake create another account and use it and keep it locked, or lock the current account and use the new account for something else, thats my advice, but from what I can see, there is nothing I can or anyone else that I see of can do for you by putting a dedicated console in the tray.
-
How about this?
screen
-
Screen for WinXP? ??? zomg
Here's what you do, make a trem user account, run the server under that account, then switch users to some other one so people don't mess with what the trem user is doing.
-
I wish a Trem server could run as a daemon in *nix platforms...
-
I wish a Trem server could run as a daemon in *nix platforms...
Still doing:
#! /bin/sh
set -e
TREMULOUS_PATH=/usr/local/games/tremulous
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:$TREMULOUS_PATH
IDENT="Trem_Custom"
DESC="Tremulous Custom"
NAME=tremded.x86
DAEMON=$TREMULOUS_PATH/$NAME
PIDFILE=/var/run/games/$IDENT.pid
SCRIPTNAME=/etc/init.d/tremulous_custom
OPTIONS="+set fs_homepath /home/tremulous/trem_custom +set dedicated 2 +set net_port 27961 +exec server.cfg"
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
d_start() {
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--background --chuid tremulous:users --make-pidfile \
--nicelevel -5 --chdir $TREMULOUS_PATH \
--exec $DAEMON -- $OPTIONS
}
d_stop() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--chuid tremulous:users \
--name $NAME
}
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart)
echo -n "Restarting $DESC: $NAME"
d_stop
sleep 1
d_start
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
-
I don't use DASPRiD's script, but another I found for Q3 Arena and modified.
http://tuplesplayhouse.blogspot.com/2006/08/tremulous-init-script.html
It works quite well, as I'm sure DASPRiDs does.
edit: Actually, looking at DASPRiD's, I like his more :)