From: William Douglas Date: Tue, 26 Jun 2012 18:49:20 +0000 (-0700) Subject: add systemd unit files X-Git-Tag: submit/trunk/20120810.185706~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e463ad706a6626b922c491a77f6eab83b805f63b;p=framework%2Fmessaging%2Fmsg-service.git add systemd unit files Change-Id: I07e4321ebeec76f0325a713439297531a8a6f441 Signed-off-by: William Douglas --- diff --git a/packaging/msg-service.changes b/packaging/msg-service.changes new file mode 100644 index 0000000..af789ef --- /dev/null +++ b/packaging/msg-service.changes @@ -0,0 +1,14 @@ +* Tue Jun 26 2012 William Douglas 366ffb6 +- add systemd unit files + +* Fri Jun 22 2012 William Douglas 396ceae +- move post section db creation to install + +* Wed Jun 13 2012 Kim Kibum 111748f +- apply FSL license + +* Tue May 29 2012 Ryan Ware cc9de80 +- Add default Smack manifest for msg-service.spec + +* Mon Apr 30 2012 Kim Kibum 3e4fded +- update tizen source diff --git a/packaging/msg-service.service b/packaging/msg-service.service new file mode 100644 index 0000000..cd27b1b --- /dev/null +++ b/packaging/msg-service.service @@ -0,0 +1,10 @@ + +[Unit] +Description=Start the msg-server + +[Service] +ExecStart=/usr/bin/msg-server + +[Install] +WantedBy=tizen-middleware.target + diff --git a/packaging/msg-service.spec b/packaging/msg-service.spec index 71ed1f8..6cdf30b 100644 --- a/packaging/msg-service.spec +++ b/packaging/msg-service.spec @@ -5,7 +5,8 @@ License: Samsung Proprietary Summary: Messaging Framework Library Group: System/Libraries Source0: %{name}-%{version}.tar.gz -Source1001: packaging/msg-service.manifest +Source101: msg-service.service +Source1001: msg-service.manifest Requires(post): /usr/bin/vconftool Requires(post): /sbin/ldconfig @@ -144,6 +145,11 @@ then INSERT INTO MSG_ADDRESS_TABLE VALUES (0, 0, 0, '', 0, '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '');" fi +mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants +install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/user/ +ln -s ../msg-service.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/msg-service.service + + %post tools -p /sbin/ldconfig %post -n sms-plugin -p /sbin/ldconfig %post -n mms-plugin -p /sbin/ldconfig @@ -293,6 +299,8 @@ vconftool set -t int db/msg/recv_mms 0 -u 0 %attr(0644,root,root)/opt/etc/msg-service/A.smi %attr(0644,root,root)/opt/etc/msg-service/V091120_104905.3gp %attr(0644,root,root)/opt/etc/msg-service/alert_on_call.mp3 +%{_libdir}/systemd/user/msg-service.service +%{_libdir}/systemd/user/tizen-middleware.target.wants/msg-service.service %files -n sms-plugin %manifest msg-service.manifest