The story starts at a time when I was really tired to running FitNesse every time I start my office laptop. I wanted a way to run it perpetually and in my quest during a sleepless night found that FitNesse can indeed be run as a windows service. And after a long battle (actually a very short one) I am successfully running it now :) (For those who need that info check out FitNesse as service).
After this I got a crazy thought which is normal as far as I am concerned. Sometimes I use Selenium and Selenium RC also uses a jetty web server. Why can't I try to run selenium as a service so that I don't need to start it every time I log on (I remember this only after I see a test throwing exception :))? Well the steps are pretty simple. Same as how you make FitNesse run as a service so if you need, check out those instructions and translate the appropriate locations to Selenium.
One thing which needs to get noted is if the Selenium service is running in a account you have given or local system account without permission to interact with desktop then the tests will run and provide results but you will not be able to see them running. So if you need to see the test run visually in a browser then run in local account with permission for the service to interact with desktop. But the catch is if you run with access to desktop you will see all the messages which selenium will normally give in command line i.e. it will not run in background.
One more thing, I think most would have explored this but for people who are looking for a way to test application in Google Chrome you must be able to use Selenium RC with custom launcher. For more info checkout Selenium website.
Running of Selenium as service is an experiment I have done at night 1 PM because I was sleepless, so I hope people get the big red label warning I am trying to put here. I haven't clearly thought about the advantage or disadvantage of this method which I may do at a later post. Till then happy hacking and get some sleep :).