Systemd Service
Check out Jibril's public recipes repository at https://github.com/garnet-org/jibril-balag.
Obtain Jibril
sudo curl -L -o /usr/bin/jibril https://github.com/garnet-org/jibril-releases/releases/download/v2.6.10/loadersudo chmod +x /usr/bin/jibril/usr/bin/jibril --versionRun Jibril as a Systemd Service
Jibril can be run as a systemd service.
This is the recommended way to run Jibril in staging/production environments. The following steps will guide you through the installation and configuration of Jibril as a systemd service.
Install the Service
To install the service, run:
sudo -E /usr/bin/jibril --systemd installThis command will create:
/etc/jibril/recipes/*.yaml
The systemd service will be installed, but not enabled yet.
All the recipes automatically installed in
etcdirectory are already builtin in Jibril - with a few other private recipes. If you chose to execute Jibril with the alchemies plugin (allowing you to define your own detection recipes), make sure to have the alchemies directory configured to/etc/jibril/recipes/directory AND to have those recipes disabled in the configuration file.OR, just use the builtin detection recipes and don't worry about that directory.
Edit the Configuration File
Edit the configuration file at /etc/jibril/config.yaml. The default configuration enables Jibril with most of its plugins and the detection events.
Enable the Service
After editing the configuration file, enable the service by running:
sudo -E jibril --systemd enable-nowThis will enable the service to start at boot time AND start the service immediately.
Check the Service Status
To check the status of the service, run:
sudo systemctl status jibrilCheck the Logs
The varlog printer is enabled by default in the configuration file. This means that the JSON events are printed to /var/log/jibril.out, while Jibril stdout and stderr are redirected to systemd journal.
To check the logs, run:
sudo journalctl -u jibriland to check the events, run:
sudo cat /var/log/jibril.out | jqDisable the Service
God forbid, but if you need to disable the service, run:
sudo -E jibril --systemd disable-nowThis will disable the service from starting at boot time AND stop the service immediately.
Last updated
Was this helpful?