Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt: make DLT_WatchdogSec can be set by user #720

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

sandy-lcq
Copy link
Contributor

In my test env, WatchdogSec default value 2 is not enough, manually changed to 3 is ok. This makes dlt.service/dlt-system.service start failed during boot time. So, make DLT_WatchdogSec can be set by user, so user can set them to proper value at build time, then service can start successfully in boot time.

In my test env, WatchdogSec default value 2 is not enough, manually
changed to 3 is ok. This makes dlt.service/dlt-system.service start
failed during boot time. So, make DLT_WatchdogSec can be set by user, so
user can set them to proper value at build time, then service can start
successfully in boot time.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
@@ -18,10 +18,14 @@ if(WITH_SYSTEMD)
set(SYSTEMD_CONFIGURATIONS_FILES_DIR ${SYSTEMD_UNITDIR} )

if(WITH_SYSTEMD_WATCHDOG)
set( DLT_WatchdogSec 2 )
if(NOT DEFINED DLT_WatchdogSec)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Le-Tin This change will not impact to our current source code.
Also, It offer flexibility for user to define their custom DLT_WatchdogSec .
So i agree to merge this change.

Copy link
Collaborator

@lti9hc lti9hc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your contribution @sandy-lcq
thanks for your review @Bichdao021195

@lti9hc lti9hc merged commit 7f7cd72 into COVESA:master Jan 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants