Daemon to monitor runtime of processes. When limits get exceeded, processes and childs will be terminated.
Collected information can be written into InfluxDB via cpprestsdk to be able to use Grafana to create nice dashboards and to send notification e.g.
- c++14 enabled compiler
- cmake (>= 3.1.2)
- log4cxx (>= 0.10.0, there is no conan package)
- python3 as a requirement for conan
- conan package manager (See: https://docs.conan.io/en/latest/installation.html)
(boost, cpprestsdk, gtest gets installed via conan)
sudo apt install gcc make cmake python3 liblog4cxx-dev ... maybe something more
python3 -m pip install conan
mkdir build
pushd build
# Install dependencies
#
conan install --build missing ../
# Build lib, executable and tests
#
cmake -DCMAKE_BUILD_TYPE=Release ../source
cmake --build .
# Run tests
#
bin/gsclib.test
popd
pushd build
# Create package and check content
#
cpack
dpkg --contents gsc*.deb
# Install package
#
sudo dpkg -i gsc*.deb
popd
# Enable and start daemon
#
sudo systemctl --system daemon-reload
sudo systemctl enable gsc
sudo systemctl start gsc