fix service control script to output error.log