/etc/init.d/helma "source: not found" error on ubuntu 8.10 intrepid

123 views
Skip to first unread message

Samuel Wan

unread,
May 8, 2009, 6:05:27 PM5/8/09
to Helma
Hi,

The script located in helma-1.6.3/scripts/helma specifies the "sh"
shell in the first line. However, sh doesn't seem to recognize the
"source" command in Ubuntu 8.10. This caused the following error to
show when I tried to run the script after installing it to /etc/init.d/
helma:

/etc/init.d/helma: 18: source: not found
Config error: /launcher.jar not found or not readable

I changed the script header to #!/bin/bash and was able to run the
script. Does that look ok?

Please note I'm totally new to Helma and not an expert on scripting
for the various shells, so I might have misunderstood something.

Regards,
-Sam

Andreas Bolka

unread,
May 10, 2009, 5:14:53 AM5/10/09
to he...@googlegroups.com
Hi Samuel,

On Sat May 09 00:05:27 +0200 2009, Samuel Wan wrote:
> /etc/init.d/helma: 18: source: not found
> Config error: /launcher.jar not found or not readable
>
> I changed the script header to #!/bin/bash and was able to run the
> script. Does that look ok?

That's perfectly fine. In fact, you've found a bug :) The init script
was intially written for Debian, where sh is typically symlinked to
bash, that's how this error slipped through.

--
Andreas Bolka

Samuel Wan

unread,
May 10, 2009, 11:09:52 AM5/10/09
to he...@googlegroups.com
Ok, thanks for confirming, Andreas :)

-Sam
Reply all
Reply to author
Forward
0 new messages