summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyotaek Shim <hyotaek.shim@samsung.com>2019-07-29 05:31:04 (GMT)
committerHyotaek Shim <hyotaek.shim@samsung.com>2019-07-29 05:31:04 (GMT)
commitdf5bfdd7f72d553d303dff13acf0b0b33f55209c (patch)
treee3a8347bccaf69286e6b1d8afd03ab3b68e47a12
parent881aebdc2bf0d81f7f5fdfc6a46321489bdb688d (diff)
downloadfactory-reset-accepted/tizen_unified.zip
factory-reset-accepted/tizen_unified.tar.gz
factory-reset-accepted/tizen_unified.tar.bz2
Change-Id: I435a8323253108bc7b192fc04282e20ec86bc17a Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
-rwxr-xr-xpackaging/factory-reset.service4
-rw-r--r--packaging/factory-reset.spec6
2 files changed, 4 insertions, 6 deletions
diff --git a/packaging/factory-reset.service b/packaging/factory-reset.service
index 7602d7f..02ca376 100755
--- a/packaging/factory-reset.service
+++ b/packaging/factory-reset.service
@@ -10,6 +10,4 @@ SmackProcessLabel=System::Privileged
CapabilityBoundingSet=cap_dac_override cap_sys_admin cap_mac_override cap_mac_admin cap_sys_boot cap_chown cap_fowner
[Install]
-WantedBy=multi-user.target
-
-
+WantedBy=delayed.target
diff --git a/packaging/factory-reset.spec b/packaging/factory-reset.spec
index 72dcf27..56867f8 100644
--- a/packaging/factory-reset.spec
+++ b/packaging/factory-reset.spec
@@ -75,10 +75,10 @@ make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/
+mkdir -p %{buildroot}%{_libdir}/systemd/system/delayed.target.wants/
install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/factory-reset.service
install -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/factory-reset-launch.service
-ln -s ../factory-reset.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/factory-reset.service
+ln -s ../factory-reset.service %{buildroot}%{_libdir}/systemd/system/delayed.target.wants/factory-reset.service
mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
install -m 0644 %SOURCE3 %{buildroot}%{_datadir}/dbus-1/system-services/org.tizen.factory-reset.service
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/
@@ -92,7 +92,7 @@ install -m 0644 %SOURCE4 %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.tizen.fa
%files
%{_libdir}/systemd/system/factory-reset.service
%{_libdir}/systemd/system/factory-reset-launch.service
-%{_libdir}/systemd/system/multi-user.target.wants/factory-reset.service
+%{_libdir}/systemd/system/delayed.target.wants/factory-reset.service
%license LICENSE
/etc/smack/accesses2.d/%{name}.rule
%attr(700,root,root) %{_bindir}/factoryreset-verify-result.sh*