Hey there,
I’m a bit of a systemd fanboy and Zeekctl’s process management has been a pet-peeve of mine
I’ve spent a bit of time to create a zeekctl plugin that hooks the install
command and start
commands to use systemd
instead of letting zeekctl
manage processes. The idea is that Zeekctl’s install
command renders and links the right systemd unit files onto the system on which zeekctl
is invoked. Afterwards, you use systemctl start zeek.target
to start the Zeek cluster and journalctl
to check on individual processes.
I’m looking for feedback from Zeek operators, users or distributors that run Zeek single node clusters on Linux. Is there any interest in leveraging and relying on systemd features more heavily these days? The plugin is intended as a POC and a starting point for establishing a reasonable Zeek systemd deployment.
# Install the plugin
$ zkg install https://github.com/awelzel/zeekctl-systemd
# Prep the Zeek installation
$ echo "systemd.enabled = 1" >> ./etc/zeekctl.cfg
$ ./bin/zeekctl install
$ systemctl start zeek.target
$ systemctl status
$ systemd-cgtop zeek.slice
The install
command writes unit files into /usr/lib/systemd
and /etc/systemd/system
- if you’re paranoid, use a virtual machine or checkout the instructions about running in a container in the repo.
Looking forward to hear any thoughts
Thanks, Arne