From: Michael M. <mm...@gm...> - 2014-04-30 21:00:24
|
edit /etc/rc.local and put startup script there (before the exit 0) example, if you put the scoreboard in /opt/scoreboard your /etc/rc.local will look something like #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /bin/sh /opt/scoreboard/startup-Linux.sh & exit 0 On Wed, Apr 30, 2014 at 3:47 PM, Lorne Irvine <li...@n-...> wrote: > Im using an Ubuntu server VM to run the scoreboard > > I wanted to configure it so it will just start automatically > > > > Things I wanted: > > to just start the jar right from /etc/init.d > > eliminate the checks, and just put in a hardcoded dirname and run without > the gui > > > > is this possible? > > Thx > > > > Lorne > > > > > > > > #!/bin/bash > > > > cd "$(dirname $0)" > > > > GUI="--gui" > > > > # If fd 0 (stdin) exists, this is an interactive shell, so don't use the > gui > > test -t "0" && GUI="" > > > > java -jar lib/crg-scoreboard.jar "$GUI" "$@" > > > > > > > > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > derbyscoreboard-devel mailing list > der...@li... > https://lists.sourceforge.net/lists/listinfo/derbyscoreboard-devel > > |