summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McCarty <patrick.mccarty@linux.intel.com>2012-06-21 12:08:19 -0700
committerPatrick McCarty <patrick.mccarty@linux.intel.com>2012-06-22 17:13:07 -0700
commit7e88279ac4d01d54e3b60527f9f15e8a6dd9b611 (patch)
treeb7e777ae53b1b46f08054039449672a7684428b7
parent4adc29e1a2c5006c87585bbd2fb01b0b7f4df3d4 (diff)
downloadlibmedia-thumbnail-1.0_post.tar.gz
libmedia-thumbnail-1.0_post.tar.bz2
libmedia-thumbnail-1.0_post.zip
Add/install a systemd service file1.0_post
Change-Id: I6b221ec25899f76cd65a9887f065f47c44d99d97
-rw-r--r--packaging/libmedia-thumbnail.changes3
-rw-r--r--packaging/libmedia-thumbnail.spec9
-rw-r--r--packaging/thumbnail-server.service12
3 files changed, 23 insertions, 1 deletions
diff --git a/packaging/libmedia-thumbnail.changes b/packaging/libmedia-thumbnail.changes
new file mode 100644
index 0000000..9ce023f
--- /dev/null
+++ b/packaging/libmedia-thumbnail.changes
@@ -0,0 +1,3 @@
+* Thu Jun 21 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> 91547d1
+- Add/install a systemd service file
+
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 38a5a85..e2c64ff 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -5,6 +5,7 @@ Release: 1
Group: System/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1: thumbnail-server.service
Source1001: packaging/libmedia-thumbnail.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
@@ -55,6 +56,10 @@ make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
+ln -s ../thumbnail-server.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/thumbnail-server.service
+
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
@@ -82,8 +87,10 @@ ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S47th
%files -n media-thumbnail-server
%manifest libmedia-thumbnail.manifest
%{_bindir}/media-thumbnail-server
+%exclude %{_bindir}/test-thumb
%attr(755,root,root) %{_sysconfdir}/init.d/thumbsvr
%attr(755,root,root) %{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
%attr(755,root,root) %{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
-%exclude %{_bindir}/test-thumb
+%{_libdir}/systemd/user/thumbnail-server.service
+%{_libdir}/systemd/user/tizen-middleware.target.wants/thumbnail-server.service
diff --git a/packaging/thumbnail-server.service b/packaging/thumbnail-server.service
new file mode 100644
index 0000000..c03c3b7
--- /dev/null
+++ b/packaging/thumbnail-server.service
@@ -0,0 +1,12 @@
+
+[Unit]
+Description=Start the thumbnailer service
+
+[Service]
+ExecStart=/usr/bin/media-thumbnail-server
+Nice=5
+OOMScoreAdjust=100
+
+[Install]
+WantedBy=tizen-middleware.target
+