Several fixes on System V init script for beanstalkd service