Skip to content
gonit is a GPLv2 drop in replacement for monit written in Go.
Go Makefile Shell
Branch: master
Clone or download
aruiz14 Bump version (#15)
Version 0.2.1 was released without changing this value. After changing this, I will create a new release that fixes the discordance.
Latest commit 474b3e3 Oct 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd Fix golint (#14) Oct 24, 2018
database Fixed warnings from goreportcard.com (#2) Aug 9, 2016
gonittest Make sample script template automatically clean itself Aug 8, 2016
log Fixed warnings from goreportcard.com (#2) Aug 9, 2016
monitor Fix golint (#14) Oct 24, 2018
testdata/scenarios/scenario1 Initial commit Aug 5, 2016
testutils Fixed race conditions Aug 8, 2016
utils Fix golint (#14) Oct 24, 2018
.gitignore Initial commit Aug 5, 2016
.travis.yml Fix golint (#14) Oct 24, 2018
CONTRIBUTING.md
COPYING Initial commit Aug 5, 2016
Makefile Fix golint (#14) Oct 24, 2018
README.md Per service status (#12) Jun 28, 2018
gonit_test.go Fix golint (#14) Oct 24, 2018
main.go Bump version (#15) Oct 29, 2018

README.md

Go Report Card Build Status

gonit

gonit is a GPLv2 drop in replacement for monit.

Currently, it only supports a subset of its configuration settings and only process type checks.

It requires Go 1.8 (or newer) to build.

Installation

$> go get github.com/bitnami/gonit/...

Building from source

$> git clone https://github.com/bitnami/gonit.git
$> cd gonit
$> make build
+ build
*** Gonit binary created under ./dist/gonit/gonit ***

Basic usage

You can check gonit's basic usage options by invoking its help menu:

$> gonit -h
Usage:
  gonit [flags]
  gonit [command]

Available Commands:
  monitor     Monitor service
  quit        Terminate the executing of a running daemin
  reload      Reinitialize tool
  restart     Restart service
  start       Start service
  status      Print full status information for each service
  stop        Stop service
  summary     Print short status information for each service
  unmonitor   Unmonitor service

Flags:
  -c, --controlfile file        Use this control file (default "/etc/gonit/gonitrc")
  -d, --daemonize n             Run as a daemon once per n seconds
  -I, --foreground              Do not run in background (needed for run from init)
  -l, --logfile file            Print log information to this file. (default "/var/log/gonit.log")
  -p, --pidfile pidfile         Use this pidfile in daemon mode (default "/var/run/gonit.pid")
  -S, --socketfile socketfile   Use this socketfile to listen for requests in daemon mode (default "/var/run/gonit.sock")
  -s, --statefile file          Set the file gonit should write state information to (default "/var/lib/gonit/state")
  -v, --verbose                 Verbose mode, work noisy (diagnostic output)

Use "gonit [command] --help" for more information about a command.

You can’t perform that action at this time.