> We've installed Rush 103.07 on Debian linux 8.2.
> When starting the daemon we get this error:
>
> # /usr/local/rush/etc/S99rush start
> /usr/local/rush/etc/S99rush: 47: /usr/local/rush/etc/S99rush: Syntax error: "(" unexpected
>
> Do you know the cause/solution?
Yes, short answer is make this change in the S99rush script:
BEFORE: function get_check_name() {
AFTER: get_check_name() {
Then the script should run fine without errors.
Apparently some distros of unix use "dash" for /bin/sh
instead of bash (such as Debian), e.g.
# ls -la /bin/sh
lrwxrwxrwx 1 root root 4 Nov 8 2014 /bin/sh -> dash
^^^^^^^
dash is very strict POSIX compliance, and doesn't support "bashisms"
like the "function" command.
This will be fixed in 103.08 and up using the above modification.
|