Revert "tizen: Add additional unit for "unified" user session" 99/212299/4
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 20 Aug 2019 07:02:23 +0000 (07:02 +0000)
committerJunghoon Park <jh9216.park@samsung.com>
Tue, 27 Aug 2019 03:52:25 +0000 (03:52 +0000)
This reverts commit c5df79346091d78b1866d047a378f35ddec6f287.

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

Change-Id: I73479c82a642c9cf5b31c4c0f49a5937b6fc3b9e

packaging/pkgmgr-installer-signal-agent@.service [deleted file]
packaging/pkgmgr-installer-signal-agent@.socket [deleted file]
packaging/pkgmgr.spec

diff --git a/packaging/pkgmgr-installer-signal-agent@.service b/packaging/pkgmgr-installer-signal-agent@.service
deleted file mode 100644 (file)
index fa17664..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-PartOf=userlogin@%i.target
-Description=Package Manager Installer Signal Agent on 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
-Type=oneshot
-ExecStart=/usr/bin/pkgmgr-installer-signal-agent
diff --git a/packaging/pkgmgr-installer-signal-agent@.socket b/packaging/pkgmgr-installer-signal-agent@.socket
deleted file mode 100644 (file)
index 7c185e3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-PartOf=userlogin@%i.target
-DefaultDependencies=no
-After=systemd-logind.service
-[Socket]
-SocketUser=%i
-ListenStream=/run/pkgmgr/agent/%i
-DirectoryMode=0777
-ExecStartPost=/usr/bin/chmod 0777 /run/pkgmgr/agent/%i
-
-[Install]
-WantedBy=user-sockets@.target
index 7da95d8695c4fc2143b328e4ff6b46b5b175086b..5f78801dfd6e524a453978436ea9704862e00e60 100644 (file)
@@ -14,8 +14,6 @@ Source1006: %{name}-types-devel.manifest
 Source1007: %{name}.conf
 Source1008: %{name}-installer-signal-agent.service
 Source1009: %{name}-installer-signal-agent.socket
-Source1010: %{name}-installer-signal-agent@.service
-Source1011: %{name}-installer-signal-agent@.socket
 Requires(post): /usr/sbin/useradd
 Requires(post): capi-system-info
 
@@ -109,11 +107,6 @@ install -m 0644 %{SOURCE1008} %{buildroot}%{_unitdir_user}/pkgmgr-installer-sign
 install -m 0644 %{SOURCE1009} %{buildroot}%{_unitdir_user}/pkgmgr-installer-signal-agent.socket
 ln -sf ../pkgmgr-installer-signal-agent.socket %{buildroot}%{_unitdir_user}/sockets.target.wants/pkgmgr-installer-signal-agent.socket
 
-mkdir -p %{buildroot}%{_unitdir}/user-sockets@.target.wants
-install -m 0644 %{SOURCE1010} %{buildroot}%{_unitdir}/pkgmgr-installer-signal-agent@.service
-install -m 0644 %{SOURCE1011} %{buildroot}%{_unitdir}/pkgmgr-installer-signal-agent@.socket
-ln -sf ../pkgmgr-installer-signal-agent@.socket %{buildroot}%{_unitdir}/user-sockets@.target.wants/pkgmgr-installer-signal-agent@.socket
-
 mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backend
 mkdir -p %{buildroot}%{_sysconfdir}/package-manager/backendlib
 mkdir -p %{buildroot}%{_sysconfdir}/opt/upgrade
@@ -196,9 +189,6 @@ rm -rf %{_sysconfdir}/package-manager/pkgmgr-label-initial-image.sh
 %{_unitdir_user}/pkgmgr-installer-signal-agent.service
 %{_unitdir_user}/pkgmgr-installer-signal-agent.socket
 %{_unitdir_user}/sockets.target.wants/pkgmgr-installer-signal-agent.socket
-%{_unitdir}/pkgmgr-installer-signal-agent@.service
-%{_unitdir}/pkgmgr-installer-signal-agent@.socket
-%{_unitdir}/user-sockets@.target.wants/pkgmgr-installer-signal-agent@.socket
 
 %files installer-devel
 %manifest %{name}-installer-devel.manifest