syntax error near unexpected token `>' when using '&>>' redirection operator syntax error near unexpected token `>' when using '&>>' redirection operator shell shell

syntax error near unexpected token `>' when using '&>>' redirection operator


That syntax wasn't introduced until bash 4. You can do the same thing though with

/etc/init.d/myservice stop >> file.log 2>&1

as noted here