Closed kernow closed 7 years ago
inspeqtor queries systemd to see if it knows of the service using systemctl show -p MainPID nginx
. If that does not return a valid PID, you'll need to investigate and determine why.
Oh I see, if you have a service with the same name in both Upstart and Systemd, Inspeqtor has no way of telling which one to use. You'll need to remove the /etc/init/nginx.conf.
This is still an issue with Inspeqtor 2.0.0 and the official Passenger Ubuntu packages on Xenial.
I added a diversion to prevent the file from being restored by an update to the nginx-common package:
dpkg-divert --divert /etc/init/nginx.conf.disabled --rename /etc/init/nginx.conf
Hi,
I'm running ubuntu 16.04.1 LTS and want to monitor nginx just to ensure the process is running and a memory usage check. In my
nginx.inq
file I have:The output of
inspeqtorctl status
is:In the log file I can see:
This shows that inspeqtor is trying to use upstart to monitor the nginx process. However upstart is not installed on the system and systemd is used. I couldn't find any way to configure inspeqtor to use systemd. Is there a way to do this, or some kind of workaround?
Also does inspeqtor need better detection, should the existence of
/etc/init
be an indicator that the system uses upstart or even has it installed? I should think lots of packages install startup scripts in all locations.