From 234ccc9e89a102f180f6a6790bc70fddfaeca0e6 Mon Sep 17 00:00:00 2001 From: yangpan Date: Mon, 18 Sep 2023 21:00:59 +0800 Subject: [PATCH 1/2] modify the commit of add sysboostd exit script --- sysboost.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysboost.service b/sysboost.service index e06789e..263c023 100644 --- a/sysboost.service +++ b/sysboost.service @@ -7,9 +7,9 @@ After=sysboost.service Type=forking ExecStart=/usr/bin/sysboostd --daemon Restart=always -ExecStop=sh /etc/systemd/system/sysboostd_exec_stop.sh -ExecStopPost=ExecStop -OnFailure=ExecStop +ExecStop=sh /etc/systemd/system/sysboostd_exec_stop.sh +ExecStopPost=sh /etc/systemd/system/sysboostd_exec_stop.sh +OnFailure=sh /etc/systemd/system/sysboostd_exec_stop.sh [Install] WantedBy=multi-user.target -- Gitee From 8dca8d225781aff7d39ba25798d560996f9584de Mon Sep 17 00:00:00 2001 From: yangpan Date: Mon, 18 Sep 2023 21:40:34 +0800 Subject: [PATCH 2/2] modify MIN_SLEEP_TIME from 10 to 10000 --- bin/daemon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/daemon.rs b/bin/daemon.rs index 379470f..57c1244 100644 --- a/bin/daemon.rs +++ b/bin/daemon.rs @@ -35,7 +35,7 @@ const LDSO: &str = "ld-"; const LIBCSO: &str = "libc.so"; // sleep some time wait for next event -const MIN_SLEEP_TIME: u64 = 10; +const MIN_SLEEP_TIME: u64 = 10000; // only 10 program can use boost const MAX_BOOST_PROGRAM: u32 = 10; -- Gitee