fix account tc fail 32/46132/1 accepted/tizen/mobile/20150817.080721 accepted/tizen/tv/20150817.080731 submit/tizen_mobile/20150817.071543 submit/tizen_tv/20150817.071600
authorjiseob.jang <jiseob.jang@samsung.com>
Mon, 17 Aug 2015 06:35:14 +0000 (15:35 +0900)
committerjiseob.jang <jiseob.jang@samsung.com>
Mon, 17 Aug 2015 06:35:14 +0000 (15:35 +0900)
- change start mode of daemon from "on-demand" to "after booting"

Change-Id: Id75cd41d7b50e6cee9cdad6f3dd490bf0a14b3b3
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
packaging/account-manager.spec
packaging/accounts-service.service [new file with mode: 0644]

index a64a369d30cb6bace2d46dfb6166caca11db8d01..a79d983a7def0ea84ee8a6d882e0316396b75c8c 100644 (file)
@@ -8,6 +8,7 @@ License:    Apache-2.0
 Source0:    account-manager-%{version}.tar.gz
 Source1:    org.tizen.account.manager.service
 Source2:    org.tizen.account.manager.conf
+Source3:    accounts-service.service
 
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
@@ -62,6 +63,10 @@ install -m 0644 %SOURCE1 %{buildroot}/usr/share/dbus-1/system-services/org.tizen
 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
 install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/dbus-1/system.d/
 
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
+install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/accounts-service.service
+%install_service multi-user.target.wants accounts-service.service
+
 %post
 /sbin/ldconfig
 #if [ ! -d /opt/usr/dbspace ]
@@ -102,5 +107,7 @@ fi
 #%defattr(-,system,system,-)
 %config %{_sysconfdir}/dbus-1/system.d/org.tizen.account.manager.conf
 %{_bindir}/account-svcd
+%attr(0644,root,root) %{_unitdir}/accounts-service.service
+%attr(0644,root,root) %{_unitdir}/multi-user.target.wants/accounts-service.service
 %attr(0644,root,root) /usr/share/dbus-1/system-services/org.tizen.account.manager.service
 
diff --git a/packaging/accounts-service.service b/packaging/accounts-service.service
new file mode 100644 (file)
index 0000000..2545cf6
--- /dev/null
@@ -0,0 +1,16 @@
+[Unit]
+Description=Accounts service
+After=tizen-runtime.target
+Requires=tizen-runtime.target
+
+[Service]
+#User=system
+#Gruop=system
+#SmackProcessLabel=libaccounts-svc
+#Type=simple
+ExecStart=/usr/bin/account-svcd
+#Restart=always
+#RestartSec=1
+
+[Install]
+WantedBy=multi-user.target