description "apache2 http server" start on runlevel [2345] stop on runlevel [!2345] # Give up if restart occurs 10 times in 30 seconds. respawn limit 10 30 script . /opt/elasticbeanstalk/support/envvars if [ -f /etc/elasticbeanstalk/set-ulimit.sh ]; then . /etc/elasticbeanstalk/set-ulimit.sh fi # Output to standard out for upstart and to the error_log /usr/sbin/httpd -D FOREGROUND 2>&1 | tee /var/log/httpd/error_log; test ${PIPESTATUS[0]} -eq 0 end script respawn