Systemd Add
authorChris E Ferron <chris.e.ferron@linux.intel.com>
Tue, 26 Jun 2012 20:28:24 +0000 (13:28 -0700)
committerChris E Ferron <chris.e.ferron@linux.intel.com>
Wed, 27 Jun 2012 16:30:05 +0000 (09:30 -0700)
packaging/contacts-server.service [new file with mode: 0644]
packaging/contacts-service.changes
packaging/contacts-service.spec

diff --git a/packaging/contacts-server.service b/packaging/contacts-server.service
new file mode 100644 (file)
index 0000000..2a65987
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=Start the Contacts service helper service
+
+[Service]
+ExecStart=/usr/bin/contacts-svc-helper
+Nice=5
+OOMScoreAdjust=100
+
+[Install]
+WantedBy=tizen-middleware.target
+
index dba35e4..47d3666 100644 (file)
@@ -1,3 +1,6 @@
+* Tue Jun 26 2012 Chris Ferron <chris.e.ferron@linux.intel.com>
+- Added systemd to the spec file, and add a service file for systemd.
+
 * Fri Jun 08 2012 Anas Nashif <anas.nashif@intel.com> b229f3d
 - Fixed permissions of contact data
 
index 2082ab4..a104d00 100644 (file)
@@ -5,6 +5,7 @@ License:        Apache-2.0
 Summary:        Contacts Service
 Group:          PIM/Contacts
 Source0:        %{name}-%{version}.tar.gz
+Source1:        contacts-server.service
 Source1001:     contacts-service.manifest
 BuildRequires:  cmake
 BuildRequires:  vconf-keys-devel
@@ -50,6 +51,12 @@ mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
 ln -s ../init.d/contacts-svc-helper.sh %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S50contacts-svc-helper
 ln -s ../init.d/contacts-svc-helper.sh %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S50contacts-svc-helper
 
+
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/contacts-server.service
+ln -s ../contacts-server.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/contacts-server.service
+
+
 %post
 /sbin/ldconfig
 
@@ -65,8 +72,6 @@ chmod 660 /opt/dbspace/.contacts-svc.db-journal
 chmod 770 -R /opt/data/contacts-svc/img/
 chmod 660 /opt/data/contacts-svc/.CONTACTS_SVC_*
 vconftool set -t int db/service/contacts/default_lang 1
-
-# from libcontacts-service.postinst
 vconftool set -t int db/service/contacts/name_sorting_order 0 -g 6005
 vconftool set -t int db/service/contacts/name_display_order 0 -g 6005
 
@@ -82,6 +87,8 @@ vconftool set -t int db/service/contacts/name_display_order 0 -g 6005
 /etc/rc.d/rc*.d/S50contacts-svc-helper
 %attr(660,root,db_contacts) /opt/data/contacts-svc/.CONTACTS_SVC_*
 %attr(770,root,db_contacts) /opt/data/contacts-svc/img/*
+%{_libdir}/systemd/user/contacts-server.service
+%{_libdir}/systemd/user/tizen-middleware.target.wants/contacts-server.service
 
 %files devel
 %manifest contacts-service.manifest