simplevisor (1) - Linux Manuals
simplevisor: simple daemons supervisor
NAME
simplevisor 1.2 - simple daemons supervisor
SYNOPSIS
simplevisor [--conf CONF][--conftype CONFTYPE][--daemon][--interval INTERVAL][-h][--log LOG][--logfile LOGFILE][--loglevel LOGLEVEL][--logname LOGNAME][-p PIDFILE][--store STORE][--version] command [path]DESCRIPTION
Simplevisor is a simple daemons supervisor, it is inspired by Erlang OTP and it can supervise hierarchies of services.COMMANDS
If a path is given or only one service entry is given:
for a given X command
If a path is given and the root entry is a supervisor:
restart_child
If a path is not given and the root entry is a supervisor:
start
stop
status
check
single
wake_up
stop_supervisor
stop_children
check_configuration
pod
rst
help
path path to a service, subset of commands available: start, stop, status, check, restart
optional arguments:
--conftype CONFTYPE configuration file type (default: apache)
--daemon daemonize, ONLY with start
--interval INTERVAL interval to wait between supervision cycles (default: 60)
-h, --help print the help page
--log LOG available: null, file, syslog, stdout (default: stdout)
--logfile LOGFILE log file, ONLY for file
--loglevel LOGLEVEL log level (default: warning)
--logname LOGNAME log name (default: simplevisor)
-p, --pidfile PIDFILE the pidfile
--store STORE file where to store the state, it is not mandatory, however recommended to store the simplevisor nodes status between restarts
--version print the program version
Run it:
to run it in daemon mode:
For other commands:
Given the example configuration, to start the httpd service:
Copyright (C) CERN 2013-2016
OPTIONS
positional arguments:
EXAMPLES
Create and edit the main configuration file:
## look for simplevisor.conf.example in the examples.
simplevisor --conf /path/to/simplevisor.conf start
simplevisor --conf /path/to/simplevisor.conf --daemon start
simplevisor --help
simplevisor --conf /path/to/simplevisor.conf start svisor1/httpd
AUTHOR
Massimo Paladin <massimo.paladin [at] gmail.com>