have a look at: http://activemq.apache.org/java-service-wrapper.html - they include the gpl binary which seems to be ok licensewise.
I think it would be nice if clerezza could easily be installed as a service. Screen is a programm for people used to work on the command liine there providing a script may slightlic reduce the number of lines needed to enter at the price of non standard options and is likely to create difficult to debug problems (such as ehn starting after multiple "su"s which causes problems to screen) - I think its up to the os to make the usage of screen easy, not to the application. reto On Wed, Apr 20, 2011 at 1:49 PM, Daniel Spicar <[email protected]>wrote: > If we have a "deamonized" init-script for clerezza. Do we want to be able > to > "connect" to the felix/clerezza shell then? Normally deamons do not provide > such a possibility. With clerezza it is possible to connect to the shell > via > ssh though provided the corresponding bundle is activated. Alternatively it > is possible to use the shell via the felix web console. > > Something like that can be implemented with the java service wrapper [1]. > It > is available as LGPL community version for open source projects. > > However if we want to use an approach like with screen, where we can start > clerezza, put it in the background and attach to the console again, then I > am not aware of any pre-made solutions for this. Does anybody know of one? > I > guess it would be possible to write a wrapper script for the corresponding > screen commands on top of some "deamonize" script. But the disadvantage is > that screen (or nohup) can not be used on (native) windows (only with > cygwin > afaik). So the solution would only work on unix (osx) systems. I have no > experience on doing something like this for windows. > > Any suggestions/comments? > > > [1] http://wrapper.tanukisoftware.com/doc/english/download.jsp > > > On Wed, Apr 6, 2011 at 1:51 PM, Reto Bachmann-Gmuer < > [email protected]> wrote: > > > On Wed, Apr 6, 2011 at 11:53 AM, Daniel Spicar < > [email protected] > > >wrote: > > > > > > I think we should provide instructions and/or support tools for > > > installing > > > > an init-script to have clerezza start automatically. > > > > > > > > Reto > > > > > > > > > > > I made a launcher script, that is generated from the pop a while ago. > > Maybe > > > this is what we are lookihng for. It should work fine with nohup. Check > > out > > > this mail: > > > > > > > > > http://mail-archives.apache.org/mod_mbox/incubator-clerezza-dev/201010.mbox/%[email protected]%3E > > > > > I would welcome a patch to provide such scripts with clerezza. > > > > But the init script I was thinking at would be more something like : > > > > > http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson+as+a+Unix+daemon > > > > or > > > > > http://docs.codehaus.org/display/MAVENUSER/MavenProjectServer+Running+Tomcat+as+a+linux+service > > > > Cheers, > > reto > > >
