From 769eb65a6849b6663885fff1ab8dafbc1b3c92dd Mon Sep 17 00:00:00 2001
From: root <zhoupengcheng11@huawei.com>
Date: Sun, 25 Feb 2024 14:59:21 +0800
Subject: [PATCH] Adjust the startup sequence of atune-rest

---
 misc/atune-rest.service | 2 +-
 misc/atuned.service     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/atune-rest.service b/misc/atune-rest.service
index 3cf0794..7774683 100644
--- a/misc/atune-rest.service
+++ b/misc/atune-rest.service
@@ -1,6 +1,6 @@
 [Unit]
 Description=A-Tune AI service
-After=network.target
+After=network.target atuned.service
 Requires=polkit.service
 
 [Service]
diff --git a/misc/atuned.service b/misc/atuned.service
index 58fb022..1677d30 100644
--- a/misc/atuned.service
+++ b/misc/atuned.service
@@ -1,6 +1,6 @@
 [Unit]
 Description=A-Tune Daemon
-After=systemd-sysctl.service network.target atune-rest.service
+After=systemd-sysctl.service network.target
 Requires=polkit.service
 
 [Service]
-- 
2.27.0

