From 6b43b25a56e14807360b3596715d20ce4e842e4d Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 22 Nov 2018 18:49:36 +0100 Subject: [PATCH] Drop unused service files This commit removes unused service files originally disabled in commit 9ef91ff21 ("Fix bugs [..] - Do not install unused services: tizen-debug-on/off"). Change-Id: Icb41586586106a427524f1c8eddfdedc23d53f93 --- CMakeLists.txt | 1 - data/CMakeLists.txt | 10 ---------- data/tizen-debug-off.service.in | 15 --------------- data/tizen-debug-on.service.in | 15 --------------- src/crash-manager/99-crash-manager-debug.conf.in | 4 ---- src/crash-manager/CMakeLists.txt | 8 +------- 6 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 data/CMakeLists.txt delete mode 100644 data/tizen-debug-off.service.in delete mode 100644 data/tizen-debug-on.service.in delete mode 100644 src/crash-manager/99-crash-manager-debug.conf.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f3222d..0a14531 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,5 @@ ADD_SUBDIRECTORY(src/crash-stack) ADD_SUBDIRECTORY(src/dump_systemstate) ADD_SUBDIRECTORY(src/log_dump) -#ADD_SUBDIRECTORY(data) ADD_SUBDIRECTORY(tests) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt deleted file mode 100644 index 681894d..0000000 --- a/data/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -CONFIGURE_FILE(tizen-debug-on.service.in tizen-debug-on.service @ONLY) -CONFIGURE_FILE(tizen-debug-off.service.in tizen-debug-off.service @ONLY) - -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tizen-debug-on.service DESTINATION /usr/lib/systemd/system - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) - -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tizen-debug-off.service DESTINATION /usr/lib/systemd/system - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) diff --git a/data/tizen-debug-off.service.in b/data/tizen-debug-off.service.in deleted file mode 100644 index c589bbb..0000000 --- a/data/tizen-debug-off.service.in +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=tizen debug off -DefaultDependencies=no -After=opt.mount tizen-debug-on.service -Before=sysinit.target - -[Service] -SmackProcessLabel=System -Type=oneshot -RemainAfterExit=yes -ExecStart=/bin/rm -f @DEBUGMODE_PATH@ -ExecStart=/sbin/sysctl -p /usr/lib/sysctl.d/99-crash-manager.conf - -[Install] -WantedBy=sysinit.target diff --git a/data/tizen-debug-on.service.in b/data/tizen-debug-on.service.in deleted file mode 100644 index e72ca2a..0000000 --- a/data/tizen-debug-on.service.in +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=tizen debug on -DefaultDependencies=no -After=opt.mount -Before=sysinit.target - -[Service] -SmackProcessLabel=System -Type=oneshot -RemainAfterExit=yes -ExecStart=/bin/touch -f @DEBUGMODE_PATH@ -ExecStart=/sbin/sysctl -p /usr/lib/sysctl.d/99-crash-manager.conf - -[Install] -WantedBy=sysinit.target diff --git a/src/crash-manager/99-crash-manager-debug.conf.in b/src/crash-manager/99-crash-manager-debug.conf.in deleted file mode 100644 index 3fa5692..0000000 --- a/src/crash-manager/99-crash-manager-debug.conf.in +++ /dev/null @@ -1,4 +0,0 @@ -# Tizen crash-manager -kernel.core_pattern=|/usr/bin/crash-manager %p %u %g %s %t %i -kernel.core_pipe_limit=10 -fs.suid_dumpable=1 diff --git a/src/crash-manager/CMakeLists.txt b/src/crash-manager/CMakeLists.txt index ee04dd0..5c36d30 100644 --- a/src/crash-manager/CMakeLists.txt +++ b/src/crash-manager/CMakeLists.txt @@ -34,13 +34,7 @@ INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) CONFIGURE_FILE(500.${PROJECT_NAME}-upgrade.sh.in 500.${PROJECT_NAME}-upgrade.sh @ONLY) - -IF(USE_COREDUMP_CONF) - CONFIGURE_FILE(99-${PROJECT_NAME}-debug.conf.in 99-${PROJECT_NAME}.conf @ONLY) -ELSE() - CONFIGURE_FILE(99-${PROJECT_NAME}.conf.in 99-${PROJECT_NAME}.conf @ONLY) -ENDIF(USE_COREDUMP_CONF) - +CONFIGURE_FILE(99-${PROJECT_NAME}.conf.in 99-${PROJECT_NAME}.conf @ONLY) INSTALL(FILES ${CMAKE_SOURCE_DIR}/src/${PROJECT_NAME}/crash-manager.conf DESTINATION /etc -- 2.7.4