Re: [jetty-user] Re: Restarting embedded Jetty
Joakim Erdfelt <[email protected]> Tue, 29 Apr 2014 07:42:39 -0700
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAG4zZZAhvNnjYZQoAf_nqV9k=icLm3bnP4C2QOe6Q2xGfd8cYQ@mail.gmail.com> |
--001a113a452e9852b004f82f71ff Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The distribution's jetty.sh requires bash, we test it on bash 4.x When you execute via sh you are at the mercy of the unix distribution as to what shell is actually being used. Examples: Fedora 20 - sh is symlinked to bash Ubuntu 13 - sh is symlinked to dash Dash is unsupported. the uname doesn't tell me anything useful. If this is a linux distro, what does this return for you? $ lsb_release -a don't sudo or sh or anything else the jetty.sh don't switch directories to bin read the start of the jetty.sh on how to set it up for other users and whatnot. the standard jetty.sh from the jetty distribution is also suitable for use as an init.d script -- Joakim Erdfelt <[email protected]> webtide.com <http://www.webtide.com/> - intalio.com/jetty Expert advice, services and support from from the Jetty & CometD experts eclipse.org/jetty - cometd.org On Tue, Apr 29, 2014 at 7:17 AM, Lu=C3=ADs de Sousa <luis.a.de.sousa@gmail.= com>wrote: > Hi Joakim, > > I did not install this Jetty instance, it came bundled with a software > called GeoNetwork. To your other questions: > > $ cat VERSION.txt | less > jetty-7.6.8.v20121106 - 06 November 2012 > ... > > $ uname -r > 3.2.0-57-virtual > > $ cd bin > $ sudo ./jetty.sh restart > ** ERROR: JETTY_HOME not set, you need to set it or install in a standard > location > > Thank you. > > > On 29 April 2014 10:12, Lu=C3=ADs de Sousa <[email protected]> wr= ote: > >> Hello, >> >> I am trying to restart an embedded Jetty instance the following way: >> >> $ sh jetty.sh restart >> jetty.sh: 123: jetty.sh: Syntax error: "(" unexpected >> >> Line 123 just contains this: >> >> CONFIGS=3D() >> >> Is this a bug with the .sh file or something else? Can it be fixed? >> >> Thank you. >> > > --001a113a452e9852b004f82f71ff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">The distribution's jetty.sh requires bash, we test it = on bash 4.x<div>When you execute via sh you are at the mercy of the unix di= stribution as to what shell is actually being used.</div><div><br></div><di= v> Examples:</div><div>=C2=A0 Fedora 20 - sh is symlinked to bash</div><div>= =C2=A0 Ubuntu 13 - sh is symlinked to dash</div><div><br></div><div>Dash is= unsupported.<br><div><br></div><div>the uname doesn't tell me anything= useful.</div> </div><div>If this is a linux distro, what does this return for you?</div><= div><br></div><div>$ lsb_release -a</div><div><br></div><div>don't sudo= or sh or anything else the jetty.sh</div><div>don't switch directories= to bin</div> <div>read the start of the jetty.sh on how to set it up for other users and= whatnot.</div><div>the standard jetty.sh from the jetty distribution is al= so suitable for use as an init.d script</div><div><br></div></div><div clas= s=3D"gmail_extra"> <br clear=3D"all"><div><div dir=3D"ltr"><div>--</div><div>Joakim Erdfelt &l= t;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= m</a>></div><div><a href=3D"http://www.webtide.com/" target=3D"_blank">w= ebtide.com</a>=C2=A0- <a href=3D"http://intalio.com/jetty" target=3D"_blank= ">intalio.com/jetty</a></div> <div><span>Expert advice, services and support from=C2=A0</span><span>from = the Jetty & CometD experts</span></div><div><a href=3D"http://eclipse.o= rg/jetty/" target=3D"_blank">eclipse.org/jetty</a>=C2=A0-=C2=A0<a href=3D"h= ttp://cometd.org/" target=3D"_blank">cometd.org</a></div> </div></div> <br><br><div class=3D"gmail_quote">On Tue, Apr 29, 2014 at 7:17 AM, Lu=C3= =ADs de Sousa <span dir=3D"ltr"><<a href=3D"mailto:luis.a.de.sousa@gmail= .com" target=3D"_blank">[email protected]</a>></span> wrote:<br>= <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div dir=3D"ltr">Hi Joakim,<br><br>I did not install this Jetty instance, i= t came bundled with a software called GeoNetwork. To your other questions:<= br><br>$ cat VERSION.txt | less<br>jetty-7.6.8.v20121106 - 06 November 2012= <br> ...<br><br>$ uname -r<br>3.2.0-57-virtual<br><br>$ cd bin<br>$ sudo ./jetty= .sh restart<br>** ERROR: JETTY_HOME not set, you need to set it or install = in a standard location<br><br>Thank you.<br></div><div class=3D"HOEnZb"> <div class=3D"h5"><div class=3D"gmail_extra"> <br><br><div class=3D"gmail_quote">On 29 April 2014 10:12, Lu=C3=ADs de Sou= sa <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote= class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli= d;padding-left:1ex"> <div dir=3D"ltr">Hello,<br><br>I am trying to restart an embedded Jetty ins= tance the following way:<br><br>$ sh jetty.sh restart<br>jetty.sh: 123: jet= ty.sh: Syntax error: "(" unexpected<br><br>Line 123 just contains= this:<br> <br>CONFIGS=3D()<br><br>Is this a bug with the .sh file or something else? = Can it be fixed?<br><br>Thank you.<br></div> </blockquote></div><br></div> </div></div></blockquote></div><br></div> --001a113a452e9852b004f82f71ff--