Hi,
Thanks for this suggestion. The skinny is it didn't work, but here's
what I did. I logged in as my user, "selenium". Set up the startup
program using Name=Selenium Server, Command=/etc/init.d/selenium-
server start (my script is below), added a comment and saved. I was
never prompted to enter a root/sudo password. I saved and restarted
but the process didn't run.
Hey, also, could you post a reply to the question I posed on the
google chrome thread? Thanks, and here's the script I'm using
(suggestions for improvements welcomed) - Dave
==============start script =====================
#!/bin/bash
# Start the service selenium-server
start() {
logger "Starting selenium-server server: "
export DISPLAY=:0
su selenium -c 'java -jar /opt/selenium/selenium-server-
standalone-2.0b3.jar -userExtensions /opt/selenium/user-extensions.js
&>/dev/null &'
PID=$!
### Create the lock file ###
echo $PID > /var/run/selenium-server.pid
success $"selenium-server server startup"
echo
}
# Restart the service selenium-server
stop() {
logger "Stopping selenium-server server: "
cat /var/run/selenium-server.pid | xargs kill -15
### Now, delete the PID file ###
rm -f /var/run/selenium-server.pid
echo
}
### main logic ###
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status selenium-server
;;
restart|reload|condrestart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0
==============stop script =====================
On Apr 27, 11:15 pm, AJ <
anand...@gmail.com> wrote:
> Is it possible to give this command directly in startup option? Under
> System->Preference->Startup Applications?
>