The service for a piece of software I just installed (from a provided .deb file) on a Ubuntu server won't start. When running the service I get the error:
/etc/init.d/matrixsa: 44: Syntax error: "}" unexpected (expecting "fi")
Here is the relevant part of the script. Not being versed in shell scripting I don't know if this is valid:
if [ -f /etc/rc.d/init.d/functions ]
then
. /etc/rc.d/init.d/functions
else
function action {
echo "$1"
shift
$@
} # <-- this is line 44
function success {
echo -n "Success"
}
function failure {
echo -n "Failed"
}
fi
