summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2012-12-20 08:09:13 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2012-12-20 08:26:39 (GMT)
commita587e5d0902e6484303d3545753a1597b613dc6e (patch)
treea6eb379a803607922228d888d31b1f997c279cf6 /data
parente5e3eb94d3bd0736a12b96b0f55f654a4c1502b2 (diff)
downloaddata-provider-master-a587e5d0902e6484303d3545753a1597b613dc6e.zip
data-provider-master-a587e5d0902e6484303d3545753a1597b613dc6e.tar.gz
data-provider-master-a587e5d0902e6484303d3545753a1597b613dc6e.tar.bz2
Initialize the project.
Change-Id: Ica8e21c0ddc22eaede97983aeab3af516efa8572
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt2
-rw-r--r--data/abi.ini14
-rw-r--r--data/conf.ini28
-rwxr-xr-xdata/data-provider-master94
-rw-r--r--data/data-provider-master.service48
-rw-r--r--data/resolution.ini7
6 files changed, 193 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
new file mode 100644
index 0000000..772eac6
--- /dev/null
+++ b/data/CMakeLists.txt
@@ -0,0 +1,2 @@
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/data-provider-master DESTINATION /etc/rc.d/init.d/ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/data-provider-master.service DESTINATION /usr/lib/systemd/user/ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
diff --git a/data/abi.ini b/data/abi.ini
new file mode 100644
index 0000000..a466d88
--- /dev/null
+++ b/data/abi.ini
@@ -0,0 +1,14 @@
+[c]
+package=org.tizen.data-provider-slave
+
+[cpp]
+package=org.tizen.data-provider-slave
+
+[html]
+package=com.samsung.data-provider-webapp-slave
+
+[osp]
+package=gi2qxenosh.osp-livebox-service
+
+[app]
+package=/APPID/
diff --git a/data/conf.ini b/data/conf.ini
new file mode 100644
index 0000000..8df0172
--- /dev/null
+++ b/data/conf.ini
@@ -0,0 +1,28 @@
+base_width=720
+base_height=1280
+minimum_period=1.0
+script=edje
+default_abi=c
+default_group=disclosure
+default_period=-1.0
+default_packet_time=0.0001
+default_content=default
+minimum_space=5242880
+replace_tag=/APPID/
+slave_ttl=30.0
+max_log_line=1000
+max_log_file=3
+sqilte_flush_max=1048576
+db_path=/opt/dbspace/.livebox.db
+log_path=/opt/usr/share/live_magazine/log
+share_path=/opt/usr/share/live_magazine/
+script_port_path=/opt/usr/live/script_port/
+ping_interval=240.0
+slave_max_load=30
+vconf_sys_cluster=file/private/org.tizen.data-provider-master/cluster
+max_pended_ctx_event=256
+use_sw_backend=false
+provider_method=pixmap
+debug_mode=false
+overwrite_content=false
+com_core_thread=true
diff --git a/data/data-provider-master b/data/data-provider-master
new file mode 100755
index 0000000..2e6ce3c
--- /dev/null
+++ b/data/data-provider-master
@@ -0,0 +1,94 @@
+#!/bin/sh
+#
+# Copyright 2012 Samsung Electronics Co., Ltd
+#
+# Licensed under the Flora License, Version 1.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.tizenopensource.org/license
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+launch_provider()
+{
+ RETRY_COUNT=0
+ while [ ! -f "/tmp/.stop.provider" ]; do
+ # PROVIDER_HEAP_MONITOR_START=false
+ # PROVIDER_DISABLE_CALL_OPTION=false
+ # PROVIDER_METHOD="shm", "pixmap", "file" (default = "file")
+ BUFMGR_LOCK_TYPE="once" BUFMGR_MAP_CACHE="true" /usr/bin/data-provider-master
+ let RETRY_COUNT=$RETRY_COUNT+1
+ if [ $RETRY_COUNT -gt 5 ]; then
+ echo "EXCEED THE MAXIMUM RETRY COUNT: $RETRY_COUNT (max 5)"
+ break;
+ fi
+ done
+ rm /tmp/.stop.provider
+}
+
+start ()
+{
+ rm /opt/usr/share/live_magazine/*
+ rm /opt/usr/share/live_magazine/reader/*
+ rm /opt/usr/share/live_magazine/log/*
+ rm /tmp/.stop.provider
+ launch_provider &
+}
+
+stop ()
+{
+ TMP=`which ps`
+ if [ $? -ne 0 ]; then
+ echo "'ps' is not exists"
+ exit 0
+ fi
+
+ TMP=`which grep`
+ if [ $? -ne 0 ]; then
+ echo "'grep' is not exists"
+ exit 0
+ fi
+
+ TMP=`which awk`
+ if [ $? -ne 0 ]; then
+ echo "'awk' is not exists"
+ exit 0
+ fi
+
+ if [ ! -f "/usr/bin/data-provider-master" ]; then
+ echo "Data provider master is not installed correctly";
+ exit 0;
+ fi
+
+ touch /tmp/.stop.provider
+ BIN_INODE=`stat -Lc "%i" /usr/bin/data-provider-master`
+
+ PID=`ps ax | grep 'data-provider-master' | awk '{print $1}'`
+ for I in $PID;
+ do
+ if [ ! -f "/proc/$I/exe" ]; then
+ continue;
+ fi
+
+ INODE=`stat -Lc "%i" /proc/$I/exe 2>/dev/null`
+ if [ x"$BIN_INODE" == x"$INODE" ]; then
+ echo "Send TERM to $I"
+ kill $I # Try to terminate a master which is launched already
+ break
+ fi
+ done
+}
+
+case "$1" in
+ start|"") start;;
+ stop) stop;;
+ restart) stop; start;;
+esac
+
+# End of a file
diff --git a/data/data-provider-master.service b/data/data-provider-master.service
new file mode 100644
index 0000000..0c154a6
--- /dev/null
+++ b/data/data-provider-master.service
@@ -0,0 +1,48 @@
+#
+# Copyright 2012 Samsung Electronics Co., Ltd
+#
+# Licensed under the Flora License, Version 1.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.tizenopensource.org/license
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+# Developer's NOTE: (Not related with the license)
+# This description is not revised by the system team.
+# So I cannot guarantees these are OK or not.
+
+[Unit]
+Description=Data Provider daemon
+After=xorg.target
+
+[Kill]
+KillSignal=SIGTERM
+
+[Exec]
+Environment=BUFMGR_LOCK_TYPE="once"
+Environment=BUFMGR_MAP_CACHE="true"
+Environment=PROVIDER_DEBUG_PROVIDER="false"
+Environment=PROVIDER_METHOD="pixmap"
+Environment=PROVIDER_COM_CORE_THREAD="true"
+StandardInput=/dev/null
+StandardOutput=/dev/null
+StandardError=/dev/null
+
+[Service]
+Type=forking
+ExecStartPre=
+ExecStart=/usr/bin/data-provider-master
+ExecStop=kill -TERM `cat /tmp/.master.pid`
+PIDFile=/tmp/.master.pid
+RestartSec=1
+
+[Install]
+WantedBy=tizen-middleware.target
diff --git a/data/resolution.ini b/data/resolution.ini
new file mode 100644
index 0000000..2bccdb6
--- /dev/null
+++ b/data/resolution.ini
@@ -0,0 +1,7 @@
+1x1=175x175
+2x1=354x175
+2x2=354x354
+4x1=712x175
+4x2=712x354
+4x3=712x533
+4x4=712x712