Register wifidmd as unified daemon

This commit is contained in:
Amin Ben Romdhane 2025-04-10 23:50:54 +02:00 committed by Vivek Kumar Dutta
parent 4d520ceb62
commit cb75a1e027
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
4 changed files with 7 additions and 5 deletions

View file

@ -8,7 +8,7 @@ command=/bin/bash -c "/usr/bin/valgrind --xml=yes --xml-file=/tmp/memory-netmngr
[program:wifidmd] [program:wifidmd]
priority=7 priority=7
command=/bin/bash -c "/usr/bin/valgrind --xml=yes --xml-file=/tmp/memory-wifidmd-report.xml --leak-check=full --show-reachable=yes --show-leak-kinds=all --errors-for-leak-kinds=all --error-exitcode=1 --track-origins=yes --leak-resolution=high --show-error-list=yes --child-silent-after-fork=yes /usr/sbin/dm-service -m wifidmd" command=/bin/bash -c "/usr/bin/valgrind --xml=yes --xml-file=/tmp/memory-wifidmd-report.xml --leak-check=full --show-reachable=yes --show-leak-kinds=all --errors-for-leak-kinds=all --error-exitcode=1 --track-origins=yes --leak-resolution=high --show-error-list=yes --child-silent-after-fork=yes /usr/sbin/wifidmd"
[program:core] [program:core]
priority=8 priority=8

View file

@ -98,10 +98,10 @@ function install_wifidmd_as_micro_service()
{ {
[ -d "/opt/dev/wifidmd" ] && return 0 [ -d "/opt/dev/wifidmd" ] && return 0
exec_cmd git clone -b devel https://dev.iopsys.eu/bbf/wifidmd.git /opt/dev/wifidmd exec_cmd git clone https://dev.iopsys.eu/bbf/wifidmd.git /opt/dev/wifidmd
exec_cmd make -C /opt/dev/wifidmd/src/ clean && make -C /opt/dev/wifidmd/src/ CFLAGS="-D'BBF_VENDOR_PREFIX=\"X_IOWRT_EU_\"'" WIFIDMD_WIFI_DATAELEMENTS='y' exec_cmd make -C /opt/dev/wifidmd/src/ clean && make -C /opt/dev/wifidmd/src/ WIFIDMD_ENABLE_WIFI_DATAELEMENTS='y'
install_ms /opt/dev/wifidmd/src/libwifi.so wifidmd exec_cmd cp -f /opt/dev/wifidmd/src/wifidmd /usr/sbin/
} }
function install_libeasy() function install_libeasy()

View file

@ -2,7 +2,7 @@
"daemon": { "daemon": {
"enable": "1", "enable": "1",
"service_name": "wifidmd", "service_name": "wifidmd",
"unified_daemon": false, "unified_daemon": true,
"services": [ "services": [
{ {
"parent_dm": "Device.", "parent_dm": "Device.",

View file

@ -358,10 +358,12 @@
"proto": "git", "proto": "git",
"version": "devel", "version": "devel",
"dm_files": [ "dm_files": [
"src/wifidmd.c",
"src/wifi.c", "src/wifi.c",
"src/dataelements.c" "src/dataelements.c"
], ],
"extra_dependencies": [ "extra_dependencies": [
"-DWIFIDMD_ENABLE_WIFI_DATAELEMENTS",
"-lm" "-lm"
] ]
}, },