Tremulous Forum

Community => Servers => Topic started by: rotacak on June 19, 2007, 10:49:54 am

Title: Minimize server window (WinXP)
Post 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
Title: Minimize server window (WinXP)
Post by: Rabbitt on June 19, 2007, 02:23:59 pm
Umm are you asking how to minimize the blue console screen's when you run a server ?
Title: Minimize server window (WinXP)
Post by: rotacak on June 19, 2007, 02:36:45 pm
Yes. Minimize to tray.
Title: Minimize server window (WinXP)
Post by: David on June 19, 2007, 02:39:38 pm
Why would you want to?
Its called a dedicated server for a reason...
Title: Minimize server window (WinXP)
Post by: rotacak on June 19, 2007, 02:45:15 pm
I dont want have two item in taskbar.
Title: Minimize server window (WinXP)
Post by: David on June 19, 2007, 02:57:57 pm
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?
Title: Minimize server window (WinXP)
Post by: Oblivion on June 19, 2007, 03:01:21 pm
Quote from: "rotacak"
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.
Title: Minimize server window (WinXP)
Post by: rotacak on June 19, 2007, 03:10:09 pm
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.
Title: Minimize server window (WinXP)
Post by: Oblivion on June 19, 2007, 03:12:57 pm
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.
Title: Minimize server window (WinXP)
Post by: DASPRiD on June 19, 2007, 04:06:48 pm
How about this?

Code: [Select]
screen
Title: Minimize server window (WinXP)
Post by: TinMan on June 19, 2007, 05:45:10 pm
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.
Title: Minimize server window (WinXP)
Post by: Odin on June 20, 2007, 08:22:03 am
I wish a Trem server could run as a daemon in *nix platforms...
Title: Minimize server window (WinXP)
Post by: DASPRiD on June 20, 2007, 10:11:58 am
Quote from: "Odin"
I wish a Trem server could run as a daemon in *nix platforms...


Still doing:

Code: [Select]

#! /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
Title: Minimize server window (WinXP)
Post by: tuple on June 20, 2007, 12:34:16 pm
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 :)