Start a Server on boot. menu

User Tag List

Results 1 to 2 of 2
  1. #1
    DoxramosPS's Avatar Knight
    Reputation
    26
    Join Date
    Aug 2010
    Posts
    214
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Start a Server on boot.

    I'm trying to get a server restarter to automatically restart on System boot on Ubuntu 12.04; I'm not sure why it's not working at this point and was hoping someone here may be able to help.
    I have my restarter itself in /opt/startup
    I'll go through the steps I took in order in the hopes that someone might be able to spot the flaw.
    Code:
    cd /opt/startup
    sudo touch authserver
    sudo nano authserver 
    __________________
    until /opt/DoxCore/bin/authserver -c /opt/DoxCore/etc/authserver.conf 2>&1;
    do date && echo "Authentication Server died with exit code $?. Restarting Now...."
    sleep 1;
    done;
    Ctrl+O -->Save |Ctrl+X-->Exit
    
    sudo chmod 7 authserver
    crontab -e
    //Scroll to bottom of crontab file and entered in:
    @reboot screen -dmS authserver
    @reboot cd /opt/startup
    @reboot ./authserver > /dev/null
    Ctrl+O-->Save | Ctrl+X-->Exit
    sudo reboot
    After the reboot I attach to the screen authserver and the only line of code there is
    Code:
    $
    Which tells me the program never executed; Any ideas on what's going on here?
    When I move to /opt/startup and manually ./authserver it starts the authserver; any help would be appreciated.
    Mangos and Trinity Emulation
    Windows | Linux
    Under Development : morgangreen.org WoW CMS Site

    Start a Server on boot.
  2. #2
    abuckau907's Avatar Active Member
    Reputation
    49
    Join Date
    May 2009
    Posts
    225
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (I don't use Ubuntu - take with a grain of salt)

    Maybe not a programmatic way to do it, but, google says

    1. Go to System –> Preferences –> Startup Applications

    2. Drag and drop any program into this list

    a) may be an 'Add' button --> click it, browse to your app, select it and hit ok.

    Kind of the cheese-ball way of doing it imo, but might work.

    you're using the command prompt/shell, so I assume you have pretty good knowledge of linux.
    You probably already tried it the way I mentioned?
    Last edited by abuckau907; 12-12-2012 at 02:01 PM.
    Some things that can be counted, don't matter. And some things that matter, can't be counted.

Similar Threads

  1. whenever I try to start my server the ascent thing say stuff
    By Donutman123 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-16-2008, 06:58 PM
  2. [QUESTION] - Cant start my server in public (hamachi)
    By cyber_geek in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-26-2008, 12:12 PM
  3. all you need to start your server
    By perryhiggins in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 12-11-2007, 01:01 PM
  4. I need AV to spawn when I start my server.Will +rep
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 11-10-2007, 09:12 PM
  5. Help plzz i cant start my server
    By Lord-kapser in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 09-02-2007, 05:17 AM
All times are GMT -5. The time now is 02:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search