Revert "tizen: Add additional unit for "unified" user session" 03/212303/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.005118 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062034 accepted/tizen/5.5/unified/wearable/hotfix/20201027.102309 accepted/tizen/unified/20190823.092409 submit/tizen/20190823.002419 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 submit/tizen_5.5_wearable_hotfix/20201026.184306 tizen_5.5.m2_release
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 20 Aug 2019 07:20:25 +0000 (07:20 +0000)
committerYunmi Ha <yunmi.ha@samsung.com>
Tue, 20 Aug 2019 07:24:20 +0000 (16:24 +0900)
This reverts commit 41452349d956d5c890f7a743c155600f8b091f63.

We've optimized systemd-user without unified system/session.
So, we revert the patch for unified system/session.

Change-Id: Ib7e2e358d26ec39c5907ccc6ef9458c382754b36

packaging/csr-framework.spec
systemd/CMakeLists.txt
systemd/csr-popup@.service.in [deleted file]
systemd/csr-popup@.socket.in [deleted file]

index d50f6de..117fb5e 100644 (file)
@@ -205,7 +205,6 @@ find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
 %install_service sockets.target.wants %{service_name}-wp.socket
 %install_service sockets.target.wants %{service_name}-admin.socket
 %install_service ../user/sockets.target.wants %{service_name}-popup.socket
-%install_service ../system/user-sockets@.target.wants %{service_name}-popup@.socket
 
 mkdir -p %{buildroot}%{rw_db_dir}
 mkdir -p %{buildroot}%{ro_db_dir}
@@ -305,9 +304,6 @@ su - owner -c %{bin_dir}/%{service_name}-test
 %{popup_unitdir}/%{service_name}-popup.socket
 %{popup_unitdir}/sockets.target.wants/%{service_name}-popup.socket
 %{popup_unitdir}/%{service_name}-popup.service
-%{_unitdir}/%{service_name}-popup@.socket
-%{_unitdir}/user-sockets@.target.wants/%{service_name}-popup@.socket
-%{_unitdir}/%{service_name}-popup@.service
 %{ro_res_dir}/default-icon.png
 
 %dir %{ro_data_dir}/%{service_name}
index e4abaa3..01d8621 100644 (file)
@@ -20,17 +20,12 @@ CONFIGURE_FILE(${SERVICE_NAME}-admin.socket.in ${SERVICE_NAME}-admin.socket @ONL
 CONFIGURE_FILE(${SERVICE_NAME}-popup.service.in ${SERVICE_NAME}-popup.service @ONLY)
 CONFIGURE_FILE(${SERVICE_NAME}-popup.socket.in ${SERVICE_NAME}-popup.socket @ONLY)
 
-CONFIGURE_FILE(${SERVICE_NAME}-popup@.service.in ${SERVICE_NAME}-popup@.service @ONLY)
-CONFIGURE_FILE(${SERVICE_NAME}-popup@.socket.in ${SERVICE_NAME}-popup@.socket @ONLY)
-
 INSTALL(
        FILES
                ${SERVICE_NAME}.service
                ${SERVICE_NAME}-cs.socket
                ${SERVICE_NAME}-wp.socket
                ${SERVICE_NAME}-admin.socket
-               ${SERVICE_NAME}-popup@.service
-               ${SERVICE_NAME}-popup@.socket
        DESTINATION ${SYSTEMD_UNIT_DIR}
 )
 
diff --git a/systemd/csr-popup@.service.in b/systemd/csr-popup@.service.in
deleted file mode 100644 (file)
index fc4fe2e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-PartOf=userlogin@%i.target
-Description=CSR popup service for user session
-
-[Service]
-User=%i
-Environment=DBUS_SESSION_BUS_ADDRESS=kernel:path=/sys/fs/kdbus/%i-user/bus;unix:path=/run/user/%i/bus
-Environment=XDG_RUNTIME_DIR=/run/user/%i
-SmackProcessLabel=User
-EnvironmentFile=@POPUP_SERVICE_ENV_FILE_PATH@
-ExecStart=@BIN_DIR@/@SERVICE_NAME@-popup
-Sockets=@SERVICE_NAME@-popup@%i.socket
diff --git a/systemd/csr-popup@.socket.in b/systemd/csr-popup@.socket.in
deleted file mode 100644 (file)
index aeba2fc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-PartOf=userlogin@%i.target
-DefaultDependencies=no
-After=systemd-logind.service
-Description= Csr popup socket
-Wants=@SERVICE_NAME@-popup@%i.service
-Before=@SERVICE_NAME@-popup@%i.service
-
-[Socket]
-SocketUser=%i
-ListenStream=/tmp/.@SERVICE_NAME@-popup.socket
-Service=@SERVICE_NAME@-popup@%i.service
-SocketMode=0777
-
-[Install]
-WantedBy=user-sockets@.target