Skip to content
mperham edited this page Sep 15, 2014 · 4 revisions

Does Inspeqtor need to run as root?

By default, Inspeqtor should be run as root and I know this can make people nervous. There's nothing in Inspeqtor that insists it run as root but it needs to be able to perform a few actions:

  1. Read its global config file in /etc/inspeqtor/inspeqtor.conf which usually contains passwords.
  2. Gather service status via initctl, systemctl, runit, etc.
  3. Gather process and host metrics from /proc
  4. (optionally) Restart a misbehaving service
  5. Create a Unix socket in /var/run/inspeqtor.sock for runtime control

Typically one or more of these actions will require root access. If you can carefully configure your system so it doesn't require root for these actions, you should find that Inspeqtor will work as non-root also.

What signals does Inspeqtor respond to?

  • TERM, INT - shut down immediately
  • HUP - reload configuration, this does have the side effect of losing all historical metric data