/zockZilla

Daemon to monitor runtime of processes and to terminate related processes when limits exceed (Games - Do you know that? Your son is trying to play all day long...)

Primary LanguageC++GNU General Public License v3.0GPL-3.0

zockZilla

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.

Requirements

(boost, cpprestsdk, gtest gets installed via conan)

sudo apt install gcc make cmake python3 liblog4cxx-dev ... maybe something more

python3 -m pip install conan

Build Instructions

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

Installation instructions for Debian like systems

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