Closed maik-dmxc closed 3 months ago
ebusd also picks up arguments from environment variables prefixed with EBUSD_ and thus the EBUSD_OPTS might be an unelegant choice in the systemd file. nevertheless it starts up regularly and only gives that message as hint to something is fishy. I'll change the log level of that one. if you want to get rid of it completely, simply rename it in the systemd file and defaults
Description
on older PI4 with Bullseye i was running 2 ebusd#.service that grabs the related config from /etc/default/ebusd two Adapters where defined
now there is an error
Actual behavior
ebusd has two EBUSD_OPTS 1 & 2 now they are ignored,
ebusd1.service and ebusd2.service is started with same OPTS
Expected behavior
starting ebusd1.service grabs OPTS1 starting ebusd2.service garbs OPST2
ebusd version
current source from git
ebusd arguments
pi@raspberrypi:~ $ cat /etc/default/ebusd # /etc/default/ebusd: # config file for ebusd service. # Options to pass to ebusd (run "ebusd -?" for more info): EBUSD_OPTS="--scanconfig" # MULTIPLE EBUSD INSTANCES WITH SYSV # In order to run multiple ebusd instances on a SysV enabled system, simply # define several EBUSD_OPTS with a unique suffix for each. Recommended is to # use a number as suffix for all EBUSD_OPTS settings. That number will then be # taken as additional "instance" parameter to the init.d script in order to # start/stop an individual ebusd instance instead of all instances. # Example: (uncomment the EBUSD_OPTS above) #EBUSD_OPTS1="--scanconfig -d /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A50285BI-if00-port0 -p 8888 -l /var/log/ebusd1.log" #EBUSD_OPTS2="--scanconfig -d /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900acTF-if00-port0 -p 8889 -l /var/log/ebusd2.log" #EBUSD_OPTS3="--scanconfig -d /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900beCG-if00-port0 -p 8890 -l /var/log/ebusd3.log" EBUSD_OPTS1="--configpath=/etc/ebusd/ --lograwdata=bytes --latency=100000 --receivetimeout=100000 --scanconfig -d /dev/serial/by-id/usb-E-Service_eBus_Coupler_Iso_12001_ALHTFOL-if00-port0 -p 8890 -l /var/log/ebusd1.log" EBUSD_OPTS2="--configpath=/etc/ebusd/ --lograwdata=bytes --latency=100000 --receivetimeout=100000 -a ff --scanconfig=08 -d /dev/serial/by-id/usb-E-Service_eBus_Coupler_Iso_12001_ALHTIL2-if00-port0 -p 8889 -l /var/log/ebusd2.log" # MULTIPLE EBUSD INSTANCES WITH SYSTEMD # In order to run muiltiple ebusd instances on a systemd enabled system, just # copy the /lib/systemd/system/ebusd.service file to /etc/systemd/system/ # with a different name (e.g. ebusd-2.service), remove the line starting with # 'EnvironmentFile=', and replace the '$EBUSD_OPTS' with the options for that # particular ebusd instance.
Operating system
Debian 12 (Bookworm) / Ubuntu 22-23 / Raspberry Pi OS 12 (including lite)
CPU architecture
x64
Dockerized
None
Hardware interface
other
Related integration
TCP (cmdline client like ebusctl or netcat)
Logs
2024-06-23 09:30:01.003 [main notice] SIGTERM received 2024-06-23 09:30:01.111 [bus error] device status: transport closed 2024-06-23 09:30:01.112 [main notice] ebusd stopped 2024-06-23 09:30:31.379 [main error] can't open pidfile: /var/run/ebusd.pid, exiting 2024-06-23 09:30:31.380 [main notice] ebusd stopped 2024-06-23 09:31:18.898 [bus notice] device status: transport opened 2024-06-23 09:31:18.899 [main notice] ebusd 23.3.23.3 started with single scan on device: /dev/serial/by-id/usb-E-Service_eBus_Coupler_Iso_12001_ALHTIL2-if00-port0, serial 2024-06-23 09:31:18.901 [bus notice] bus started with own address ff/04