summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung Woo <sangjung.woo@samsung.com>2013-03-28 19:18:23 +0900
committerSangjung Woo <sangjung.woo@samsung.com>2013-03-28 19:23:31 +0900
commit44770ca3d33855e0944096689f93f8ee08b78bf5 (patch)
tree757422be6e16e5d3215f5e308b966bcc831833ab
parentc4fa3a32248086716d6a657861c0c0dd922750f1 (diff)
downloadoma-ds-agent-44770ca3d33855e0944096689f93f8ee08b78bf5.tar.gz
oma-ds-agent-44770ca3d33855e0944096689f93f8ee08b78bf5.tar.bz2
oma-ds-agent-44770ca3d33855e0944096689f93f8ee08b78bf5.zip
[systemd] Add 'oma-ds-agent.service' file
The OMA DS maintainer, Sanghyuk Ko, wants 'oma-ds-agent' daemon to be launched at boot time. So 'oma-ds-agent.service' file is added for this request. Change-Id: I90fd8d5194bf96b082e93611165e83d2e296fb2f Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r--packaging/oma-ds-agent.service10
-rwxr-xr-xpackaging/oma-ds-agent.spec9
2 files changed, 19 insertions, 0 deletions
diff --git a/packaging/oma-ds-agent.service b/packaging/oma-ds-agent.service
new file mode 100644
index 0000000..2c97f8c
--- /dev/null
+++ b/packaging/oma-ds-agent.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=OMA DS agent
+After=calendar.service contacts-service.service pushd.service msg-service.service dbus.service
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/oma-ds-agent
+
+[Install]
+WantedBy=tizen-middleware.target
diff --git a/packaging/oma-ds-agent.spec b/packaging/oma-ds-agent.spec
index f513941..c1211d3 100755
--- a/packaging/oma-ds-agent.spec
+++ b/packaging/oma-ds-agent.spec
@@ -5,6 +5,7 @@ Release: 1
Group: TO_BE/FILLED_IN
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
+Source1: packaing/oma-ds-agent.service
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0)
@@ -55,6 +56,10 @@ sqlite3 %{buildroot}/opt/dbspace/.omasyncagent.db "PRAGMA journal_mode = PERSIST
%make_install
+# systemd service script sertup
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
+ln -s ../oma-ds-agent.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/oma-ds-agent.service
%clean
rm -rf %{buildroot}
@@ -118,6 +123,10 @@ rm -rf /usr/share/oma-ds-cfg
%defattr(700,root,root)
/etc/init.d/oma-ds
+%defattr(644,root,root)
+/usr/lib/systemd/user/oma-ds-agent.service
+/usr/lib/systemd/user/tizen-middleware.target.wants/oma-ds-agent.service
+
%files -n ds-public-plugins
%manifest ds-public-plugins.manifest
%defattr(-,root,root,-)