I put this file in /etc/init/proxyserver.conf that execute this script at startup (Ubuntu 11.10):
description "Run code for ProxyServer"
start on runlevel [23]
script
cd /home/mark/selenium-client
exec java -jar selenium-server-standalone-2.20.0.jar -role hub -port 1111
end script
This works fine but if I execute this in the terminal:
ps aux | grep selenium
It return this screen:
root 783 0.0 2.3 680584 23688 ? Ssl Apr18 4:45 java -jar selenium-server-standalone-2.20.0.jar -role hub -port 1111
But I want to run the script as non-root user, how I can do this?
Thanks!