diff --git a/readme.md b/readme.md index 4f00c78..8e8517e 100644 --- a/readme.md +++ b/readme.md @@ -117,6 +117,14 @@ Environment varaibles: CACHET_DEV set to enable dev logging ``` +## Init script + +If your system is running systemd (like Debian, Ubuntu 16.04, Fedora or Archlinux) you can use the provided example file: [example.cachet-monitor.service](cachet-monitor/example.cachet-monitor.service). + +1. Simply put it in the right place with `cp example.cachet-monitor.service /etc/systemd/system/cachet-monitor.service` +2. Then do a `systemctl daemon-reload` in your terminal to update Systemd configuration +3. Finally you can start cachet-monitor on every startup with `systemctl enable cachet-monitor.service`! 👍 + ## Templates This package makes use of [`text/template`](https://godoc.org/text/template). [Default HTTP template](https://github.com/CastawayLabs/cachet-monitor/blob/master/http.go#L14) @@ -185,4 +193,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE.