daemon works with strict mode now.
This commit is contained in:
parent
80f73fa70b
commit
38992dd327
|
@ -15,11 +15,12 @@ case "$SNAP_USER_COMMON" in
|
||||||
*) COMMON=$SNAP_USER_COMMON ;;
|
*) COMMON=$SNAP_USER_COMMON ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -d /etc/taos ]; then
|
if [ ! -f $SNAP_DATA/etc/taos/taos.cfg ]; then
|
||||||
CONFIG_FILE="/etc/taos"
|
if [ ! -d $SNAP_DATA/etc/taos ]; then
|
||||||
else
|
mkdir -p $SNAP_DATA/etc/taos
|
||||||
CONFIG_FILE="$SNAP/etc/taos"
|
fi
|
||||||
|
cp $SNAP/etc/taos/taos.cfg $SNAP_DATA/etc/taos
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Launch the snap
|
# Launch the snap
|
||||||
$SNAP/usr/bin/taosd -c $CONFIG_FILE $@
|
$SNAP/usr/bin/taosd -c /etc/taos $@
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
name: tdengine
|
name: tdengine
|
||||||
base: core18 # the base snap is the execution environment for this snap
|
base: core18 # the base snap is the execution environment for this snap
|
||||||
version: '2.0.0.6' # just for humans, typically '1.2+git' or '1.3.2'
|
version: '2.0.1.1' # just for humans, typically '1.2+git' or '1.3.2'
|
||||||
icon: snap/gui/t-dengine.svg
|
icon: snap/gui/t-dengine.svg
|
||||||
summary: an open-source big data platform designed and optimized for IoT.
|
summary: an open-source big data platform designed and optimized for IoT.
|
||||||
description: |
|
description: |
|
||||||
TDengine is an open-source big data platform designed and optimized for Internet of Things (IoT), Connected Vehicles, and Industrial IoT. Besides the 10x faster time-series database, it provides caching, stream computing, message queuing and other functionalities to reduce the complexity and costs of development and operations.
|
TDengine is an open-source big data platform designed and optimized for Internet of Things (IoT), Connected Vehicles, and Industrial IoT. Besides the 10x faster time-series database, it provides caching, stream computing, message queuing and other functionalities to reduce the complexity and costs of development and operations.
|
||||||
|
|
||||||
grade: stable
|
grade: stable
|
||||||
confinement: classic
|
confinement: strict
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
tdengine:
|
tdengine:
|
||||||
|
@ -24,7 +24,9 @@ apps:
|
||||||
command: taoswrapper.sh
|
command: taoswrapper.sh
|
||||||
plugs:
|
plugs:
|
||||||
- network
|
- network
|
||||||
|
- system-observe
|
||||||
- systemfiles
|
- systemfiles
|
||||||
|
- home
|
||||||
|
|
||||||
taosdemo:
|
taosdemo:
|
||||||
command: usr/bin/taosdemo
|
command: usr/bin/taosdemo
|
||||||
|
@ -85,7 +87,7 @@ parts:
|
||||||
- usr/bin/taosd
|
- usr/bin/taosd
|
||||||
- usr/bin/taos
|
- usr/bin/taos
|
||||||
- usr/bin/taosdemo
|
- usr/bin/taosdemo
|
||||||
- usr/lib/libtaos.so.2.0.0.6
|
- usr/lib/libtaos.so.2.0.1.1
|
||||||
- usr/lib/libtaos.so.1
|
- usr/lib/libtaos.so.1
|
||||||
- usr/lib/libtaos.so
|
- usr/lib/libtaos.so
|
||||||
|
|
||||||
|
@ -103,8 +105,8 @@ layout:
|
||||||
bind: $SNAP_DATA/var/lib/taos
|
bind: $SNAP_DATA/var/lib/taos
|
||||||
/var/log/taos:
|
/var/log/taos:
|
||||||
bind: $SNAP_DATA/var/log/taos
|
bind: $SNAP_DATA/var/log/taos
|
||||||
/etc/taos/taos.cfg:
|
/etc/taos:
|
||||||
bind-file: $SNAP_DATA/etc/taos/taos.cfg
|
bind: $SNAP_DATA/etc/taos
|
||||||
|
|
||||||
|
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in New Issue