38 lines
940 B
Diff
38 lines
940 B
Diff
From 8b447063d1ebde763cbb19563b682d5709282301 Mon Sep 17 00:00:00 2001
|
|
From: licunlong <licunlong1@huawei.com>
|
|
Date: Fri, 30 Jun 2023 17:17:48 +0800
|
|
Subject: [PATCH] fix: make config.service.toml same as config.service
|
|
|
|
---
|
|
tests/test_units/config.service.toml | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test_units/config.service.toml b/tests/test_units/config.service.toml
|
|
index 5b00dc6..8c56508 100644
|
|
--- a/tests/test_units/config.service.toml
|
|
+++ b/tests/test_units/config.service.toml
|
|
@@ -1,11 +1,12 @@
|
|
[Unit]
|
|
Description="CN"
|
|
Documentation="192.168.1.1"
|
|
-
|
|
+Requires="test.service"
|
|
|
|
[Service]
|
|
Type="Simple"
|
|
ExecCondition="/usr/bin/sleep 5"
|
|
+ExecStartPre="/usr/bin/echo test"
|
|
ExecStart="/bin/echo 'test'"
|
|
ExecStop="/bin/kill $MAINPID"
|
|
WatchdogSec=10
|
|
@@ -13,5 +14,6 @@ Restart="always"
|
|
RestartPreventExitStatus="1 2 SIGKILL"
|
|
RestartSec=5
|
|
|
|
+
|
|
[Install]
|
|
WantedBy="dbus.service"
|
|
--
|
|
2.33.0
|
|
|