Switch to multi-user.target service 13/121013/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 27 Mar 2017 05:11:14 +0000 (14:11 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 27 Mar 2017 05:11:14 +0000 (14:11 +0900)
Change-Id: I2c181dc9996a78208e4c9ee7bfe05ea8bb266eee
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
packaging/context-service.spec
packaging/contextd.service

index 5df292d5fc7599d7681922ce981c499162e36525..14c660880685b63b5a8e4c8910347893f52b7971 100644 (file)
@@ -51,9 +51,9 @@ make %{?_smp_mflags}
 %install
 %make_install
 
-mkdir -p %{buildroot}%{_unitdir}/default.target.wants
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
 install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
-ln -s ../contextd.service %{buildroot}%{_unitdir}/default.target.wants/contextd.service
+ln -s ../contextd.service %{buildroot}%{_unitdir}/multi-user.target.wants/contextd.service
 
 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
 install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
index 0fb5d9031df34c03ea7d5dfa1eda2b0362e870c2..cae5d7f813849e667f8db4dccde6f87b7137ad7b 100644 (file)
@@ -1,5 +1,6 @@
 [Unit]
 Description=Contextual Service Framework Server Daemon
+After=lazy_mount.service systemd-logind.service
 
 [Service]
 User=service_fw
@@ -11,4 +12,4 @@ Restart=on-failure
 RestartSec=1
 
 [Install]
-WantedBy=default.target
+WantedBy=multi-user.target