Quite not, i think. Because in /usr/lib/swupdate/swupdate.sh
you got following if-cases:
# handle variable escaping in a simmple way. Use exec to forward open filedescriptors from systemd open.
if [ "$SWUPDATE_WEBSERVER_ARGS" != "" -a "$SWUPDATE_SURICATTA_ARGS" != "" ]; then
exec /usr/bin/swupdate $SWUPDATE_ARGS -w "$SWUPDATE_WEBSERVER_ARGS" -u "$SWUPDATE_SURICATTA_ARGS"
elif [ "$SWUPDATE_WEBSERVER_ARGS" != "" ]; then
exec /usr/bin/swupdate $SWUPDATE_ARGS -w "$SWUPDATE_WEBSERVER_ARGS"
elif [ "$SWUPDATE_SURICATTA_ARGS" != "" ]; then
exec /usr/bin/swupdate $SWUPDATE_ARGS -u "$SWUPDATE_SURICATTA_ARGS"
else
exec /usr/bin/swupdate $SWUPDATE_ARGS
fi
and if SWUPDATE_SURICATTA_ARGS == "" what it would be in your suggestion it would not execute the command with option "-u" meaning it would not execute suricatta.
If i delete or set it to empty string SWUPDATE_SURICATTA_ARGS in my conf.d/... file i get following error message:
ep 11 07:09:54 dh-stm32mp1-dhcor-avenger96 swupdate.sh[413]: [DEBUG] : SWUPDATE running : [read_module_settings] : No config settings found for module webserver
Sep 11 07:09:54 dh-stm32mp1-dhcor-avenger96 swupdate.sh[413]: [TRACE] : SWUPDATE running : [start_swupdate_subprocess] : Started webserver with pid 424 and fd 9
Sep 11 07:09:54 dh-stm32mp1-dhcor-avenger96 swupdate.sh[413]: [DEBUG] : SWUPDATE running : [read_settings_file] : Reading config file /etc/swupdate/swupdate.conf
Sep 11 07:09:54 dh-stm32mp1-dhcor-avenger96 swupdate.sh[413]: [DEBUG] : SWUPDATE running : [read_module_settings] : No config settings found for module webserver
Sep 11 07:09:54 dh-stm32mp1-dhcor-avenger96 swupdate.sh[413]: [INFO ] : SWUPDATE running : [start_mongoose] : Mongoose web server version 7.8 with pid 424 started on [31.144.0.0] with web root [/www]