I want to have monit start on system boot, potentially to monitor several rails delayed_job apps, each as a different user. I have it working as root, each monitoring definition specifying the user to run as. The problem is, I want those user accounts to be able to manage themselves, but they cannot run monit, as the cannot access the /etc/monit/monitrc file.
Alternately I can set up a .monitrc in each user, but that requires each user to run their own monit instance, and I don't think those start automatically on boot.
Finally, I can run it as root, and give the users sudo access to run monit, which is my current workaround...
Is there a smarter way to allow any user (or at least users in a particular unix group) to be able to manage monit, and yet have it start as one monit process at boot time?