summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-08-21 13:18:07 +0800
committerChengwei Yang <chengwei.yang@intel.com>2013-08-21 13:18:36 +0800
commit047d0849293d4289282b1e1fe34c35eb71fa5cb5 (patch)
treeffb8d54e55ffb5537c4399e60b12904cd67d07db /packaging
parent904a5884eb0d707d5a1c91e05b9e11708ae62905 (diff)
downloadoma-ds-agent-047d0849293d4289282b1e1fe34c35eb71fa5cb5.tar.gz
oma-ds-agent-047d0849293d4289282b1e1fe34c35eb71fa5cb5.tar.bz2
oma-ds-agent-047d0849293d4289282b1e1fe34c35eb71fa5cb5.zip
Remove sysvinit script and fix systemd unit
Sysvinit script is obsolete since tizen 2.1, so it's time to remove it. Meanwhile, there was a minor bug when migrate from sysvinit to systemd, so fix it. Change-Id: If34315c539429e0802050756cc343b69d2c77753 Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/oma-ds-agent.changes3
-rwxr-xr-xpackaging/oma-ds-agent.spec15
2 files changed, 3 insertions, 15 deletions
diff --git a/packaging/oma-ds-agent.changes b/packaging/oma-ds-agent.changes
index 129fc74..06afe9a 100644
--- a/packaging/oma-ds-agent.changes
+++ b/packaging/oma-ds-agent.changes
@@ -1,4 +1,7 @@
* Wed Aug 21 2013 Chengwei Yang <chengwei.yang@intel.com>
+- Remove sysvinit script
+
+* Wed Aug 21 2013 Chengwei Yang <chengwei.yang@intel.com>
- Install dbus service file to system-wide dbus service directory, TDIST-295
* Wed Aug 21 2013 Chengwei Yang <chengwei.yang@intel.com>
diff --git a/packaging/oma-ds-agent.spec b/packaging/oma-ds-agent.spec
index 6518f4f..0cdc7b5 100755
--- a/packaging/oma-ds-agent.spec
+++ b/packaging/oma-ds-agent.spec
@@ -72,21 +72,8 @@ then
mkdir /etc/rc.d/rc5.d
fi
-if [ ! -f /etc/rc.d/rc3.d/S91oma-ds-agent ]
-then
-ln -s /etc/init.d/oma-ds /etc/rc.d/rc3.d/S91oma-ds-agent
-fi
-
-if [ ! -f /etc/rc.d/rc5.d/S91oma-ds-agent ]
-then
- ln -s /etc/init.d/oma-ds /etc/rc.d/rc5.d/S91oma-ds-agent
-fi
-
-#/etc/init.d/oma-ds start
-
%preun
-/etc/init.d/oma-ds stop
%postun
@@ -114,8 +101,6 @@ rm -rf /usr/share/oma-ds-cfg
/usr/share/oma-ds-cfg/*
%defattr(700,root,root)
-/etc/init.d/oma-ds
-
%defattr(644,root,root)
/usr/lib/systemd/system/oma-ds-agent.service
/usr/lib/systemd/system/graphical.target.wants/oma-ds-agent.service