Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.85 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.85 KB

Gridinit

Gridinit is a tool used to manage non-daemon processes.

Supported Linux Distributions

  • Ubuntu
    • Trusty
    • Xenial
    • Bionic
    • Focal

Wanna check? Then use the build_all.sh script that relies on our Dockerfile to reproduce minimal build environments.

Dependencies

Build

Building gridinit is configured by cmake, done by make and requires that libdill is installed ans its installation paths are configured with pkg-config.

cmake -D GRIDINIT_SOCK_PATH=/tmp/gridinit.sock .
make

But libdill is rarely available in mainstream Linux distributions, so here are the build instructions to build it from the git submodule:

git submodule update --init --recursive
cd vendor/libdill
./autogen.sh
./configure --prefix=/usr --enable-shared --disable-static --enable-tls --enable-threads
make
sudo make install

Compile-time Configuration

Macro Default Description
GRIDINIT_SOCK_PATH /var/run/gridinit.sock Path used for the socket on both server and client side, when no path is specified in the configuration.

Try it

./gridinit -d ./gridinit.conf
./gridinit_cmd status
./gridinit_cmd status2
./gridinit_cmd status3
./gridinit_cmd status @NS0
./gridinit_cmd status @NS1
./gridinit_cmd status @local
./gridinit_cmd status @local @NS1 @NS0
./gridinit_cmd stop
./gridinit_cmd start