solved: [daisy] problem start daisy as service on linux

Ehms, Jürgen jge at msc-ge.com
Mon Jul 31 09:03:30 CDT 2006


Thanks for your replies.

The JAVAWRAPPER was not running on reporting a problem with not installed XTERMINAL.

But the Shellscript at http://www.source-code.biz/snippets/java/7.htm
ist running now

Becource I starded the sevice as user "daisy" as $serviceUser I had to set MERLIN_HOME for this user
and then I could start with:

sudo -u $serviceUser $SHELL -c "$cmd" || return 1

In that script.

> -----Ursprüngliche Nachricht-----
> Von: daisy-bounces at lists.cocoondev.org 
> [mailto:daisy-bounces at lists.cocoondev.org] Im Auftrag von Bruno Dumon
> Gesendet: Montag, 31. Juli 2006 15:28
> An: Daisy: open source CMS - general mailinglist
> Betreff: Re: AW: [daisy] problem start daisy as service on linux
> 
> 
> In case you're not aware of it, there's a nice solution for 
> service scripts documented here:
> 
> http://cocoondev.org/daisydocs-1_5/admin/service/193.html
> 
> On Mon, 2006-07-31 at 13:58 +0200, Ehms, Jürgen wrote:
> > Yes I did
> > 
> > In front of script I set
> > 
> > DAISY_HOME=/srv/www/daisy-1.5-M2; export DAISY_HOME
> > DATADIR=/srv/www/daisydata; export DATADIR 
> > MERLIN_HOME=$DAISY_HOME/repository-server/merlin;export MERLIN_HOME
> > 
> > But the call is:
> > 
> > cmd="nohup $javaCommandLine >>$serviceLogFile 2>&1 & echo \$! 
> > >$pidFile" sudo -u $serviceUser $SHELL -c "$cmd" || return 1
> > 
> > and $javaCommandLine is the java call
> > 
> > /usr/lib/jvm/java/bin/java -Xmx128m -Dmerlin.deployment.timeout=0 
> > -Dmerlin.logging.config=/srv/www/daisydata/conf/logkit.xml 
> -Ddaisy.datadir=/srv/www/daisydata 
> -Ddaisy.home=/srv/www/daisy-1.5-M2 -Dfile.encoding=UTF-8 
> -Djava.awt.headless=true 
> -Dorg.apache.commons.logging.Log=org.outerj.daisy.logging.Dais
> yLog 
> -Djava.security.auth.login.config=/srv/www/daisydata/conf/logi
> n.config 
> "-Djava.security.policy=/srv/www/daisy-1.5-M2/repository-serve
r/merlin/bin/security.policy" -jar > "/srv/www/daisy-1.5-M2/repository-server/merlin/system/merlin/
> jar/merlin-cli-3.3.0.jar"  -offline -home /srv/www/daisydata 
> -repository /srv/www/daisy-1.5-M2/lib -config 
> /srv/www/daisydata/conf/myconfig.xml 
> /srv/www/daisy-1.5-M2/repository-server/conf/block.xml
> <snip/>
> 
> -- 
> Bruno Dumon                             http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> bruno at outerthought.org                          bruno at apache.org
> 
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: 
> http://outerthought.org/site/services/daisy/da> isysupport.html
> 
> mail to: daisy at lists.cocoondev.org
> list 
> information: http://lists.cocoondev.org/mailman/listinfo/daisy
> 


More information about the daisy mailing list