honnix: > Sahoo wrote: >> honnix: >>> Sahoo wrote: >>>> honnix wrote: >>>>> I'm a newbie with Felix. I just want to find out how to run Felix in >>>>> background with my default profile. >>>>> >>>>> Something like this: *java -jar bin/felix.jar & >>>>> >>>>> *Is there a way? >>>> >>>> I guess you are concerned about Felix prompting you about the profile >>>> name. If you set felix.cache.profile or felix.cache.profiledir property >>>> in config.property file, then Felix won't prompt you anything and the >>>> command you mentioned would be sufficient. >>> >>> Thank you very much. I did as you said, but when I try to launch >>> Felix using java -jar bin/felix.jar &, it will be suspended in the >>> background, since it tries to get the input. >>> [...] >>> Then what if I don't want this terminal to be blocked, and only put >>> Felix to the background? Is this possible? I can do this with Equinox >>> by not giving -console argument. >> >> Yes, you can do something similar using Felix. Just disable the >> org.apache.felix.shell.tui bundle in conf/config.properties. Look for >> org.apache.felix.shell.tui*.jar in config.properties and remove that >> bundle from the autostart list. > > Thanks very much for your kindly help. I removed tui from > conf/config.properties, and restarted Felix, tui was still running > there, then I stopped it manually, and restarted Felix, and it was > done. Now I can put it to background successfully. ;-)
Is this the recommended way of running Felix as a daemon? Summary: * Disable shell.tui (by removing the autoload paramater) * Set felix profile (-Dfelix.cache.profile=<some-profile>) * Redirect stdout and stderr to some log file ( >> felix.out 2>&1 ) e.g: (cd ~/felix-trunk/main; java -Dfelix.cache.profile=myProfile -jar bin/felix.jar) >> /var/log/felix.log 2>&1 & Is there an init-script that does this (possibly in a cleaner way...)? -- Vegar Westerlund --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

