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 5df292d..14c6608 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 0fb5d90..cae5d7f 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