1
24.1 Legacy Series / After update to 24.1.7Crowdsec will not start with LAPI disabled
« on: May 17, 2024, 09:47:45 am »
I run crowdsec in a distributed config and have an issue with crowdsec with LAPI disabled not starting after the update to 24.1.7.
Following can be produced by running
With LAPI enabled:
Somehow the -no-api parameter also is used for deamon. Looks to be in the construction of _doit in /etc/rc.subr
EDIT: Issue is caused by upstream changes. Tracked here: https://github.com/opnsense/plugins/issues/3985
Following can be produced by running
Code: [Select]
sh -x rc.d/crowdsec start
With LAPI enabled:
Code: [Select]
limits -C daemon /usr/sbin/daemon -f -P /var/run/crowdsec_daemon.pid -p /var/run/crowdsec.pid -r -R 10 -t crowdsec -- /usr/local/bin/crowdsec -c /usr/local/etc/crowdsec/config.yaml
With LAPI disabledCode: [Select]
limits -C daemon /usr/sbin/daemon -no-api -f -P /var/run/crowdsec_daemon.pid -p /var/run/crowdsec.pid -r -R 10 -t crowdsec -- /usr/local/bin/crowdsec -c /usr/local/etc/crowdsec/config.yaml -no-api
daemon: illegal option -- n
usage: daemon [-cfHrS] [-p child_pidfile] [-P supervisor_pidfile]
[-u user] [-o output_file] [-t title]
[-l syslog_facility] [-s syslog_priority]
[-T syslog_tag] [-m output_mask] [-R restart_delay_secs]
Somehow the -no-api parameter also is used for deamon. Looks to be in the construction of _doit in /etc/rc.subr
EDIT: Issue is caused by upstream changes. Tracked here: https://github.com/opnsense/plugins/issues/3985