From 234c014475907f3dd42275f404f8d2299b350b01 Mon Sep 17 00:00:00 2001 From: zsien Date: Mon, 13 May 2024 14:44:18 +0800 Subject: [PATCH] chore: set apps quit timeout to 3s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 systemd drop-in 文件,将 app-DDE- 开头的 服务退出超时时间设置为 3s Issues: linuxdeepin/developer-center#8554 --- misc/CMakeLists.txt | 5 +++++ misc/systemd/user/app-DDE-.service.d/override.conf | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 misc/systemd/user/app-DDE-.service.d/override.conf diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index 0ac6735..8798a95 100644 --- a/misc/CMakeLists.txt +++ b/misc/CMakeLists.txt @@ -20,9 +20,14 @@ set(SYSTEMD_USER_FILE ${CMAKE_CURRENT_BINARY_DIR}/systemd/user/org.desktopspec.ApplicationManager1.service ) +set(SYSTEMD_USER_DROP_IN_FILE + ${CMAKE_CURRENT_SOURCE_DIR}/systemd/user/app-DDE-.service.d/override.conf +) + set(SERVICE_DEST_PATH ${CMAKE_INSTALL_PREFIX}/lib/systemd/user/) install(FILES ${SYSTEMD_USER_FILE} DESTINATION ${SERVICE_DEST_PATH}) +install(FILES ${SYSTEMD_USER_DROP_IN_FILE} DESTINATION ${SERVICE_DEST_PATH}/app-DDE-.service.d) # create a symlink to dde-session install_symlink(org.desktopspec.ApplicationManager1.service dde-session-initialized.target.wants) diff --git a/misc/systemd/user/app-DDE-.service.d/override.conf b/misc/systemd/user/app-DDE-.service.d/override.conf new file mode 100644 index 0000000..aa2c1a9 --- /dev/null +++ b/misc/systemd/user/app-DDE-.service.d/override.conf @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. +# +# SPDX-License-Identifier: LGPL-3.0-or-later + +[Service] +TimeoutStopSec=3