My Node.js server upstart job config:
start on (net-device-up and runlevel [2345] and started td-agent)
stop on runlevel [016]
respawn
env HOME="/var/nodes"
script
chdir $HOME
exec /usr/local/bin/node index.js -c app/config/live >> /var/log/node/server.log 2>> /var/log/node/server_error.log
end script
When I run:
initctl check-config node
I got this:
node
start on: unknown job td-agent
When Server is booted, Node is down, but I can manually start it:
service node start
node start/running, process 1156
EDIT: If I remove and started td-agent
, it is started on boot. But I need Node started after td-agent. How can I fix this issue?