homework 2
homework 2 (CentOS version for upstart job)