Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    March 2010
    Location
    Oslo
    Posts
    3

    RFC: Change to the startup script.

    Could you change the startup script so that Binarypath is set before the check for x86 binary?

    This way the script can be crontabed. And also include ${BINARYPATH} to the check so it will work. This is how I changed it so it works with crontab.

    Code:
    BINARYPATH="/home/teamspeak/teamspeak3-server_linux-x86"
    if [ -e "${BINARYPATH}/ts3server_linux_x86" ]; then
            BINARYNAME="ts3server_linux_x86"
    else
            BINARYNAME="ts3server_linux_amd64"
    fi
    Abit better choice than the start script bugs each time when you try to run it from another location than the extracted folder.

  2. #2
    Join Date
    July 2002
    Location
    Germany
    Posts
    2,192
    Hi,

    we already do set the BINARYPATH before we check for the binaries, here is the beginning of the current startup script code:

    Code:
    #!/bin/bash                                                                                                  
    # Copyright (c) 2010 TeamSpeak Systems GmbH                                                                  
    # All rights reserved                                                                                        
    
    COMMANDLINE_PARAMETERS="" #add any command line parameters you want to pass here
    BINARYPATH="."                                                                  
    cd "${BINARYPATH}"                                                              
    LIBRARYPATH="$(pwd)"                                                            
    
    if [ -e "ts3server_linux_x86" ]; then
            BINARYNAME="ts3server_linux_x86"
    else                                    
            BINARYNAME="ts3server_linux_amd64"
    fi
    It should work fine when called from any location provided you fill out the BINARYPATH accordingly (including cron).
    You think my answer is stupid ? Read This:
    http://www.catb.org/~esr/faqs/smart-...ons.html#intro

    In a world without fences and walls - who needs windows and gates ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Startup script
    By Sandbird in forum Linux / FreeBSD
    Replies: 2
    Last Post: September 9th, 2013, 12:10 PM

Posting Permissions

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