SIMPLEVISOR(1)

πŸ“¦ version 1.2, in epel 9

πŸ’… SIMPLEVISOR(1) β€” the simplevisor man page, bestie edition ✨

okay so sit down, grab a matcha πŸ“, because i'm about to introduce you to simplevisor β€” that's version 1.2, a simple daemons supervisor, and honestly? she's iconic. this is the simplevisor manual page and we're gonna get through it together, no cap 🫢


🌸 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]

literally just that. command first, then optionally a path. that's the whole vibe check πŸ‘‘


✨ DESCRIPTION ✨

Simplevisor is a simple daemons supervisor β€” she's inspired by Erlang OTP and she can supervise hierarchies of services. hierarchies!! like a whole family tree of daemons and she's the main character keeping everyone in line πŸ’œ

πŸŽ€ COMMANDS πŸŽ€

if a path is given, or only one service entry is given:

  • for a given X command β€” run the service X command, where the service is the only entry provided or the entry identified by its path. iykyk πŸ’…

if a path is given AND the root entry is a supervisor:

  • restart_child β€” tell a running simplevisor process to restart the child identified by the given path. and bestie, this is different from the restart command described above, because this way we're sure the running simplevisor won't try to check/start/stop the child while we're restarting it. no chaotic overlap, we love a clean handoff 🧚

if a path is not given AND the root entry is a supervisor:

  • start β€” start the simplevisor process, which starts the supervision. you can pair it with --daemon if you want it as a daemon 🌈
  • stop β€” stop the simplevisor process and all its children, if running
  • status β€” return the status of the simplevisor process
  • check β€” return the comparison between the expected state and the actual state.
    • 0 -> everything is fine ✨
    • 1 -> warning, not expected πŸ’€
  • single β€” execute one cycle of supervision and exit. useful to be run in a cron script ⭐
  • wake_up β€” tell a running simplevisor process to wake up and supervise (rise and grind bestie β˜€οΈ)
  • stop_supervisor β€” only stop the simplevisor process but not the children
  • stop_children β€” only stop the children but not the simplevisor process
  • check_configuration β€” only check the configuration file
  • pod β€” generate pod format help, to be used by pod2man to generate the man page πŸ“–
  • rst β€” generate rst format help, to be used in the web doc
  • help β€” same as -h/--help, prints the help page 🫢

πŸ’– OPTIONS πŸ’–

positional arguments:

  • command β€” check, check_configuration, help, pod, restart, restart_child, rst, single, start, status, stop, stop_children, stop_supervisor, wake_up
  • path β€” path to a service. subset of commands available: start, stop, status, check, restart

optional arguments:

  • --conf CONF β€” configuration file
  • --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

πŸ¦‹ EXAMPLES πŸ¦‹

Create and edit the main configuration file:

## look for simplevisor.conf.example in the examples.

Run it:

simplevisor --conf /path/to/simplevisor.conf start

to run it in daemon mode:

simplevisor --conf /path/to/simplevisor.conf --daemon start

for other commands:

simplevisor --help

given the example configuration, to start the httpd service:

simplevisor --conf /path/to/simplevisor.conf start svisor1/httpd

🌟 AUTHOR 🌟

Massimo Paladin <massimo.paladin@gmail.com>

Copyright (C) CERN 2013-2016


okay that's the whole page, you ate that πŸ’… and for the cute sign-off: this page is dated 2016-06-27 and comes from the simplevisor man page source, so like… vintage but still slaying πŸŽ€βœ¨ bye bestie, go supervise something πŸ¦‹

πŸ“¦ where this page comes from