Linux – Daemon doesn’t start at boot – how can I debug this

bootlinuxUbuntu

I installed new relic according to their quick install instructions.

If I start the daemon manually after boot with /etc/init.d/newrelic-daemon restart it works, but it doesn't run automatically after boot. How can I find out why?

The servers are Scalr/AWS PHP/5.3.2-1ubuntu4.15

Best Answer

Try searching through dmesg, /var/log/messages and /var/log/syslog whyc is it happening so but there is a workaround:
1) Try running chkconfig newrelic-daemon on
2) If (1) doesn't help, try forcing the start by adding /etc/init.d/newrelic-daemon restart to /etc/rc.local, this should be placed there before any exit statement in /etc/rc.local