incubator-wave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuri Z <vega...@gmail.com>
Subject Re: how to run WIAB as a daemon
Date Thu, 17 May 2012 17:33:32 GMT
Yeah, right, I think the script tried to auto detect it but failed. It is
easier to just set the JAVA_HOME hardcoded in the script.

On Thu, May 17, 2012 at 7:55 PM, Paulo Pires <pjpires@ubiwhere.com> wrote:

> One additional note related to the /etc/init.d/wave. You may have to
> manually edit the file and add an entry to match your Java path
> (JAVA_HOME).
> Example
> t=/usr/lib/jvm/java-6-openjdk && test -d $t && JAVA_HOME=$t
> or
> t=/usr/lib/jvm/default-java && test -d $t && JAVA_HOME=$t
>
> On 17/05/12 17:47, Yuri Z wrote:
> > Here's some basic instructions for using the daemon scripts:
> > 1. Build and configure wave according to existing instructions. The
> > location of the wave clone will be referred to as WAVE_DIR.
> > 2. Copy platforms/ubuntu/server-wrapper.sh into WAVE_DIR.
> > 3. Copy platforms/ubuntu/daemon-script.sh to /etc/init.d/wave
> > 4. Make sur that the execute bit (chmod a+x) is set for both scripts.
> > 5. Edit /etc/init.d/wave to change /var/wave to the actual location of
> the
> > WAVE_DIR (or move WAVE_DIR to /var/wave).
> > 6. Create a "wave" user and "wave" group.
> > 7. Create the dir "log" in WAVE_DIR and then run (chown wave:wave log).
> > 8. sudo /etc/init.d/wave start
> >
> > daemon-script.sh runs server-wrapper.sh which exec's run-server.sh, which
> > exec's java.
> >
> >
> > From
> >
> https://groups.google.com/forum/?fromgroups#!searchin/wave-protocol/server-wrapper.sh/wave-protocol/2c3OoNU5Pto/iQuj-aqkvFMJ
> >
> >
> >
> > On Thu, May 17, 2012 at 7:39 PM, 李向彬 <dannyalanshore@gmail.com> wrote:
> >
> >> i try to run WIAB with the command:*./run-server.sh & *first it is ok,
> but
> >> after sometime it stops working and i lost all the data.
> >>
> >>   1. is there any proper way to run WIAB as an  daemon ?
> >>   2. before when i restart WIAB, all the data is preserved , why i lost
> >>   this time?
> >>
> >>
> >> --
> >> *danny*
> >> *Mobile:18912945948*
> >> *qq:466765117*
> >>
>
> --
> Paulo Pires
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message