Forum

Results 1 to 5 of 5
  1. #1
    Join Date
    December 2003
    Location
    Brazil
    Posts
    35

    [outdated] Linux Server - Background Process?

    How can i start the server on background? TS2 goes to background by default, the only solution is using screen?

  2. #2
    Join Date
    June 2009
    Location
    Germany
    Posts
    14
    Edit by mod
    Please don't use this outdated script anymore! The script got an overhaul long time ago.
    Please use the minimal or startscript instead


    apt-get install screen

    screen -A -m -d -S ts3 ./ts3server_linux_x86

    thats it, thanks to The-Killer

    i dont know other solution ^^

    screen is simple and an easy way
    Last edited by florian_fr40; November 8th, 2011 at 03:06 PM.

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    12
    i take nohup /.program &
    then i close putty ^^
    all infos or errors written in a text called nohup.out

  4. #4
    Join Date
    June 2006
    Location
    Munich
    Posts
    17

    gentoo initscript

    I'm using gentoo and I've writen a small initscript: (it is ugly but it works)

    /etc/init.d/ts3
    Code:
    #!/sbin/runscript
    opts=""
    
    depend() {
    	need net
    	use mysql dns
    	after sshd
    }
    
    checkconfig() {
    	if [ ! -f "${TS3_CONF}" ] ; then
    		ewarn "${TS3_CONF} does not exist."
    		return 1
    	fi
    
    }
    
    start() {
    	checkconfig || return 1
    
    	ebegin "Starting ts3"
    	start-stop-daemon --start --quiet --exec "${TS3_PATH}" --chdir "${TS3_DIR}" --chuid "${TS3_USER}" --group "${TS3_GROUP}" --background --make-pidfile --pidfile "${TS3_PID}" -- dbplugin=ts3db_mysql dbsqlcreatepath=create_mysql/
    	eend $?
    }
    
    stop() {
    	local rv=0
    	ebegin "Stopping ts3"
    	start-stop-daemon --stop --quiet --pidfile "${TS3_PID}"
    	eend $?
    }
    /etc/conf.d/ts3
    Code:
    # /etc/conf.d/ts3
    
    # Location of the ts3 binary
    TS3_DIR="/home/ts3"
    TS3_PATH="/home/ts3/ts3server_linux_x86"
    TS3_USER="ts3"
    TS3_GROUP="ts3"
    # Location of the ts3 configuration file
    TS3_CONF="/home/ts3/ts3db_mysql.ini"
    # Location of the ts3 pid file
    TS3_PID="/var/run/ts3.pid"

  5. #5
    Join Date
    August 2009
    Location
    Australia
    Posts
    26
    Yeah I use screen.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TS3 installation process for linux
    By azzy101 in forum Linux
    Replies: 13
    Last Post: April 18th, 2014, 08:24 PM
  2. Background Process Without Root?
    By RVN2010 in forum Linux / FreeBSD
    Replies: 7
    Last Post: December 31st, 2009, 03:04 AM
  3. [outdated] HowTo start a permanent TSł-Server (Linux)
    By lenzy in forum Linux / FreeBSD
    Replies: 8
    Last Post: December 23rd, 2009, 05:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •