diff options
| author | Clayton Casciato <majortomtosourcecontrol@gmail.com> | 2025-09-22 08:45:05 -0600 |
|---|---|---|
| committer | Marta Rybczynska <marta.rybczynska@ygreky.com> | 2025-10-08 17:34:14 +0200 |
| commit | 0b7b0629bebe98237ce3060ebe132db05cdcc3b7 (patch) | |
| tree | fc6731f03b2da308a9d39eb8ed21c1e04d98d1ea | |
| parent | a125bc0a0926bc43def85095414eac51b1b4eca1 (diff) | |
| download | meta-security-0b7b0629bebe98237ce3060ebe132db05cdcc3b7.tar.gz | |
suricata: populate SYSTEMD_SERVICE for service autostart
https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-SYSTEMD_SERVICE
Before:
root@beaglebone-yocto:~# systemctl status suricata
* suricata.service - Suricata IDS/IDP daemon
Loaded: loaded (/usr/lib/systemd/system/suricata.service; disabled; preset: disabled)
Active: inactive (dead)
Docs: man:suricata(8)
man:suricatasc(8)
https://redmine.openinfosecfoundation.org/projects/suricata/wiki
After:
root@beaglebone-yocto:~# systemctl status suricata
* suricata.service - Suricata IDS/IDP daemon
Loaded: loaded (/usr/lib/systemd/system/suricata.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-09-22 04:05:08 UTC; 20s ago
Invocation: 8cfeb29631f443f0830bffeb00975931
Docs: man:suricata(8)
man:suricatasc(8)
https://redmine.openinfosecfoundation.org/projects/suricata/wiki
Main PID: 268 (Suricata-Main)
Tasks: 7 (limit: 4915)
Memory: 36.8M (peak: 37M)
CPU: 2.222s
CGroup: /system.slice/suricata.service
`-268 /usr/bin/suricata -c /etc/suricata/suricata.yaml -i eth0
Sep 22 04:05:08 beaglebone-yocto systemd[1]: Started Suricata IDS/IDP daemon.
Sep 22 04:05:09 beaglebone-yocto suricata[268]: i: suricata: This is Suricata version 7.0.0 RELEASE running in SYSTEM mode
Sep 22 04:05:10 beaglebone-yocto suricata[268]: W: detect: No rule files match the pattern /var/lib/suricata/rules/suricata.rules
Sep 22 04:05:10 beaglebone-yocto suricata[268]: W: detect: 1 rule files specified, but no rules were loaded!
Sep 22 04:05:10 beaglebone-yocto suricata[268]: i: threads: Threads created -> W: 1 FM: 1 FR: 1 Engine started.
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
| -rw-r--r-- | recipes-ids/suricata/suricata_7.0.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-ids/suricata/suricata_7.0.0.bb b/recipes-ids/suricata/suricata_7.0.0.bb index f02d343..c36fbf1 100644 --- a/recipes-ids/suricata/suricata_7.0.0.bb +++ b/recipes-ids/suricata/suricata_7.0.0.bb | |||
| @@ -139,6 +139,7 @@ fi | |||
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | SYSTEMD_PACKAGES = "${PN}" | 141 | SYSTEMD_PACKAGES = "${PN}" |
| 142 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | ||
| 142 | 143 | ||
| 143 | PACKAGES =+ "${PN}-python" | 144 | PACKAGES =+ "${PN}-python" |
| 144 | FILES:${PN} += "${systemd_unitdir} ${sysconfdir}/tmpfiles.d" | 145 | FILES:${PN} += "${systemd_unitdir} ${sysconfdir}/tmpfiles.d" |
