I have a custom upstart script that manages a Node API service. That script pipes output to /var/log/upstart/api-access.log
. What I keep seeing is that the old log gets archived to api-access.log.1.gz
, but a new api-access.log
file isn't created.
Any idea why this might be happening or what I can do to make it right?
The script portion of my upstart file looks like this:
script
chdir /opt/www/api
exec sudo -u www-data NODE_ENV=production npm start >> /var/log/upstart/api-access.log
end script