CastawayLabs / cachet-monitor

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

Having an issue with creating monitor config as Ubuntu service #64

Closed jaxonashton closed 7 years ago

jaxonashton commented 7 years ago

Getting an error of

Mar 10 17:11:47 CachetMonitor systemd[1]: cachet-monitor.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.

when executing service cachet-monitor status. I can't seem to figure this out as I can run the script manually with no issues with cachet-monitor -c /root/cachet-config.yaml, but when it comes to creating it as a service, it's not cooperating.

Looking for any help that can be provided.

matejkramny commented 7 years ago

Bizarre, there is an ExecStart directive. What system are you running on?

jaxonashton commented 7 years ago

I was able to get this figured out. It appears that it didn't like the absolute path I was using in the ExecStart directive. Updating this to ExecStart=/usr/local/bin/cachet-monitor -c /root/cachet-config.yaml fixed the issue.