From aa5a4cdf094af6660ff718ef0de566aaa97a4698 Mon Sep 17 00:00:00 2001
From: zhangyao2022 <zhangyao108@huawei.com>
Date: Mon, 4 Dec 2023 15:03:00 +0800
Subject: [PATCH] fix: change the DefaultDependencies configuration to true

---
 core/sysmaster/src/unit/rentry.rs | 2 +-
 units/syslog.target               | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/sysmaster/src/unit/rentry.rs b/core/sysmaster/src/unit/rentry.rs
index 21eddd2..d7cfc4c 100755
--- a/core/sysmaster/src/unit/rentry.rs
+++ b/core/sysmaster/src/unit/rentry.rs
@@ -144,7 +144,7 @@ pub(crate) struct UeConfigUnit {
     //When set to true, the unit will not be stopped when systemctl isolate is executed. For service, target, socket timer and path, the default value is false. For other units, the default value is true
     #[entry(default = false)]
     pub IgnoreOnIsolate: bool,
-    #[entry(default = false)]
+    #[entry(default = true)]
     pub DefaultDependencies: bool,
     #[entry(default = false)]
     pub RefuseManualStart: bool,
diff --git a/units/syslog.target b/units/syslog.target
index 3057814..901bdf6 100644
--- a/units/syslog.target
+++ b/units/syslog.target
@@ -1,2 +1,3 @@
 [Unit]
 Description=Initialize syslog
+DefaultDependencies=false
-- 
2.33.0

