Suricata installation that includes adding systemd units

  • Suricata v7.0.5
  • Opensuse Tumbleweed and LEAP 15.5
  • How you installed Suricata: from source

I have been using Suricata since version 4, building it from source. Way back then systemd units were not a thing.

Is there a make command that installs the systemd units? None of the builds have installed them using make intstall.

No, however a template is created as ./etc/suricata.service. Its used with some patching on RHEL/Fedora systems, but I think its generic enough to use elsewhere. Pretty sure I’ve tested it on Ubuntu.

I don’t know enough about systems to know if its generic enough to start installing it though, so leave that up to packagers, end-users.

Thank you.
I have created a bash script to control Suricata operations (start, stop, etc.) and arbitrarily located it in /etc/init.d/. Would you interested in reviewing it?

No thanks. Don’t mean to be rude but it’s a systemd world now, at least on Linux. And rc.d style scripts are usually even more distribution specific.

Have you thought about packaging Suricata for Suse? I’ve tried to get started with the OBS a few times now but have always got side tracked before having anything usable.

1 Like