CastawayLabs / cachet-monitor

Distributed monitoring plugin for CachetHQ
https://castawaylabs.github.io/cachet-monitor/
MIT License
439 stars 127 forks source link

Init script #65

Closed ozzy-simpson closed 7 years ago

ozzy-simpson commented 7 years ago

I'm an Ubuntu noob, so forgive me. Is there an upstart script for 14.04? The systemd one provided only works with 15 and up (I believe).

ozzy-simpson commented 7 years ago

Nevermind, I figured it out myself! Here's the code if anyone needs it. Add it to /etc/init/cachetmonitor.conf, shutdown your server, and boot it up again - it should work.

description "Cachet Monitor"

start on startup

env USER=root
env HOME=/root

setuid root
setgid root
chdir /root

script
    exec cachet-monitor -c /cachet-monitor.json --immediate
end script
coffeverton commented 5 years ago

Hi, where did you put the cachet-monitor executable? In /root?