diff options
author | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-06-26 13:28:24 -0700 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-06-27 09:30:05 -0700 |
commit | 491bcaedb0fc59002db9e29981a90ac8dc4dbcb7 (patch) | |
tree | c5bf62d5393d8654ebae9cddab658e7091304966 | |
parent | 4cb0429d98e08bc24e8b29e1c71e6f616075093a (diff) | |
download | contacts-service-491bcaedb0fc59002db9e29981a90ac8dc4dbcb7.tar.gz contacts-service-491bcaedb0fc59002db9e29981a90ac8dc4dbcb7.tar.bz2 contacts-service-491bcaedb0fc59002db9e29981a90ac8dc4dbcb7.zip |
Systemd Add
-rw-r--r-- | packaging/contacts-server.service | 11 | ||||
-rw-r--r-- | packaging/contacts-service.changes | 3 | ||||
-rw-r--r-- | packaging/contacts-service.spec | 11 |
3 files changed, 23 insertions, 2 deletions
diff --git a/packaging/contacts-server.service b/packaging/contacts-server.service new file mode 100644 index 0000000..2a65987 --- /dev/null +++ b/packaging/contacts-server.service @@ -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 + diff --git a/packaging/contacts-service.changes b/packaging/contacts-service.changes index dba35e4..47d3666 100644 --- a/packaging/contacts-service.changes +++ b/packaging/contacts-service.changes @@ -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 diff --git a/packaging/contacts-service.spec b/packaging/contacts-service.spec index 2082ab4..a104d00 100644 --- a/packaging/contacts-service.spec +++ b/packaging/contacts-service.spec @@ -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 |