server-watch

command module
v0.0.0-...-2e50eff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

README

server-watch

server-watch is a small and simple watchdog for a Linux service.

This watchdog will check if >>service<< is running every X seconds. If service is down, the watchdog will attmept to start it every Y seconds up to Z times. Watchdog will write events to a log file. Additionally watchdog will report fallowing events to provided email address:

  • Service is down
  • Service has been started after X attemps
  • Service can't be started after X attemps

before You run

Please check config file and fill it with correct data.

to list services on ubuntu

service --status-all

daemon

If You want to run this program as a daemon

go run main.go & disown

or try daemonize

these articles helped me

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL