Thanks anyway for giving info on the akuma. I was unaware of it. Possibly, I can borrow some ideas from there!
/Thomas On Thu, Apr 2, 2009 at 3:13 PM, Thomas Joseph <[email protected]> wrote: > Hi Cameron > > Already there are solutions like the Commons Daemon. However, it is very > much native and have different solutions to linux and windows platoform. I > considered writing this in Java, so that it can be used uniformly acorss > platforms, just that we may need to change the script file that actually > starts the program. > > AFIK, in windows any program can be made as a service by a simple command > (but I don't know ;) ). And most of the service wrappers for windows do just > that. > > Till now, I have not tested this on other platforms other than Linux (may > be I will do this evening), but should work to my thinking. > > Again, what I have done is a quick proof of concept. It can be improved a > lot, with a bit of planning. > > > On Thu, Apr 2, 2009 at 2:55 PM, Cameron Braid <[email protected]>wrote: > >> I submitted this JIRA issue yesterday asking about daemonizing. >> >> http://issues.ops4j.org/browse/PAXRUNNER-228 >> >> The akuma library already does all the heavly lifting needed to daemonize >> on linux. I think this would make a good solution for linux - however a >> different tact would need to be taken for windows (however there are many >> java service wrappers for windows) >> >> Cameron >> >> 2009/4/2 Thomas Joseph <[email protected]> >> >>> Hi guys, >>> >>> I had tried to run pax-runner (or any other java program infact) >>> daemonised. i.e. it will get detached from the terminal. We can do a telnet >>> to stop the service. >>> >>> It is available in my lab >>> https://scm.ops4j.org/repos/ops4j/laboratory/users/open4thomas/jdaemon >>> >>> Basic thing works on my Linux box. I did not try other platforms, but >>> should work I suppose. I did not try, but it should be fairyl smple to make >>> this as a windows service as well. >>> >>> If someone is intrested in trying it out, I will be happy to recieve >>> feedbacks. Beware that it pre-pre alpha and has lot of bugs :). >>> >>> PS: Few months back I had asked on this mailing list if pax runner could >>> be daemonised. That time Alin asked me to make the effort if I know it. Two >>> weeks back I just took that effort after my office hours. >>> >>> -- >>> Thanks and Regards, >>> >>> Thomas Joseph >>> >>> LinkedIn: http://www.linkedin.com/in/ethomasjoseph >>> ------------------------------------------------------------ >>> Promote Open Source - Promote Liberty of Ideas and Software. >>> ------------------------------------------------------------ >>> >>> _______________________________________________ >>> general mailing list >>> [email protected] >>> http://lists.ops4j.org/mailman/listinfo/general >>> >>> >> >> _______________________________________________ >> general mailing list >> [email protected] >> http://lists.ops4j.org/mailman/listinfo/general >> >> > > > -- > -- > Thanks and Regards, > > Thomas Joseph > > LinkedIn: http://www.linkedin.com/in/ethomasjoseph > ------------------------------------------------------------ > Promote Open Source - Promote Liberty of Ideas and Software. > ------------------------------------------------------------ > -- -- Thanks and Regards, Thomas Joseph LinkedIn: http://www.linkedin.com/in/ethomasjoseph ------------------------------------------------------------ Promote Open Source - Promote Liberty of Ideas and Software. ------------------------------------------------------------
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
