CastawayLabs / cachet-monitor

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

Cachet-Monitor as a Windows Service? #54

Closed Mikagami closed 7 years ago

Mikagami commented 7 years ago

I have cachet-monitor running on a windows server box and was wondering if someone has any idea on how to have cachet-monitor run as a windows service? Anyone else install it in a windows environment?

matejkramny commented 7 years ago

cachet-monitor is a binary file. Unfortunately, I have no experience on Windows. If anyone is able to help I can add this to the installation documents

Mikagami commented 7 years ago

I hope someone can help. At the moment I run the app via the command cachet-monitor [config file] but since I am running this from a remote machine, as soon as I disconnect from the session the app stops running.

matejkramny commented 7 years ago

on linux i usually run supervisor or monit.

You can try this on windows as it's python: https://stackoverflow.com/questions/7629813/is-there-windows-analog-to-supervisord

Also: https://support.microsoft.com/en-us/help/137890/how-to-create-a-user-defined-service

Mikagami commented 7 years ago

Thank You Matej. The second link you provided alongside the one below, which helped me pass on parameters, was what gave me the solution I wanted. http://www.timdavis.com.au/general/creating-a-user-defined-service-in-windows-7