Skip to content

kil/ubervisor

Repository files navigation

Ubervisor - process control daemon

Install

You will need cmake, json-c and libevent to build ubervisor. On ubuntu, apt-get install libevent-dev libjson0-dev cmake.

Use cmake . && make to build.

Building the documentation requires python and sphinx. If cmake can find sphinx-build, man pages can be build with make man. The html documentation is build with make htmldoc (or online here).

Useful cmake flags

  • -DCMAKE_C_COMPILER:string=clang (force compiler)
  • -DCMAKE_INSTALL_PREFIX:string=/usr/local (install prefix)
  • -DCMAKE_BUILD_TYPE=Debug (set build type)

Debugging

To do a clang --analyze build, use -DCLANG_ANALYZE:bool=true.

Starting ubervisor on boot

Debian based systems

sudo cp scripts/ubervisor_debian /etc/init.d/ubervisor sudo update-rc.d -f ubervisor defaults

Environment variables to configure the server are read from /etc/ubervisor/ubervisor_server.conf (see ubervisor-server man page).

Systemd

sudo cp scripts/ubervisor.service /etc/systemd/system/ sudo systemctl enable ubervisor.service

The file /etc/ubervisor/ubervisor_server.conf has to exist. The file is read by systemd and should set environment variables to configure the server (see ubervisor-server man page).

License

BSD 2-clause license

About

a better process control system

Resources

Stars

Watchers

Forks

Packages

No packages published