Skip to content

Commit d6ca6c4

Browse files
committed
ZeroMQ Checkpoint
Publisher, Processor, and Producer work. Shipper is untested. Init scripts are untested Python dependencies are not checked in due to ongoing work
1 parent 9c29b10 commit d6ca6c4

34 files changed

+3497
-0
lines changed

common/3rdparty.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ This repository includes the following code from other projects.
1010
* gd-2.0.33.tar.gz [https://teradata-stacki.s3.amazonaws.com/3rdparty/gd-2.0.33.tar.gz]
1111
* rcs-5.7.tar.gz [https://teradata-stacki.s3.amazonaws.com/3rdparty/rcs-5.7.tar.gz]
1212
* mariadb-10.2.6.tar.gz [https://teradata-stacki.s3.amazonaws.com/3rdparty/mariadb-10.2.6.tar.gz]
13+
* zeromq-4.2.2.tar.gz [https://teradata-stacki.s3.amazonaws.com/3rdparty/zeromq-4.2.2.tar.gz]
1314
* sc-im-0.4.0-20161021.tgz [https://teradata-stacki.s3.amazonaws.com/3rdparty/sc-im-0.4.0-20161021.tgz]
1415
* Python-3.6.1.tgz [https://teradata-stacki.s3.amazonaws.com/3rdparty/Python-3.6.1.tgz]
1516
* git-lfs-1.4.3-1.el6.x86_64.rpm [https://teradata-stacki.s3.amazonaws.com/3rdparty/git-lfs-1.4.3-1.el6.x86_64.rpm]
1617
* newt-0.52.20.tar.gz [https://teradata-stacki.s3.amazonaws.com/3rdparty/newt-0.52.20.tar.gz]
18+
* redis-4.0.2.tar.gz [https://teradata-stacki.s3.amazonaws.com/3rdparty/redis-4.0.2.tar.gz]

common/manifest.3rdparty

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ sc-im-0.4.0-20161021.tgz
1010
storcli-1.17.08-1.noarch.rpm
1111
wxPython-4.0.0a3.tar.gz
1212
mariadb-10.2.6.tar.gz
13+
redis-4.0.2.tar.gz
14+
zeromq-4.2.2.tar.gz
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# @SI_Copyright@
2+
# stacki.com
3+
# v4.0
4+
#
5+
# Copyright (c) 2006 - 2017 StackIQ Inc. All rights reserved.
6+
#
7+
# Redistribution and use in source and binary forms, with or without
8+
# modification, are permitted provided that the following conditions are
9+
# met:
10+
#
11+
# 1. Redistributions of source code must retain the above copyright
12+
# notice, this list of conditions and the following disclaimer.
13+
#
14+
# 2. Redistributions in binary form must reproduce the above copyright
15+
# notice unmodified and in its entirety, this list of conditions and the
16+
# following disclaimer in the documentation and/or other materials provided
17+
# with the distribution.
18+
#
19+
# 3. All advertising and press materials, printed or electronic, mentioning
20+
# features or use of this software must display the following acknowledgement:
21+
#
22+
# "This product includes software developed by StackIQ"
23+
#
24+
# 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
25+
# neither the name or logo of this software nor the names of its
26+
# authors may be used to endorse or promote products derived from this
27+
# software without specific prior written permission.
28+
#
29+
# THIS SOFTWARE IS PROVIDED BY STACKIQ AND CONTRIBUTORS ``AS IS''
30+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
31+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
32+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL STACKIQ OR CONTRIBUTORS
33+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
36+
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
37+
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
38+
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
39+
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40+
# @SI_Copyright@
41+
42+
PKGROOT = /opt/stack
43+
ROLLROOT = ../../..
44+
DEPENDS.FILES = $(ARCHIVENAME)-$(VERSION).tar.gz
45+
46+
include $(STACKBUILD)/etc/CCRules.mk
47+
48+
49+
build:
50+
$(TAR) -xzf $(ARCHIVENAME)-$(VERSION).tar.gz
51+
( \
52+
cd $(ARCHIVENAME)-$(VERSION); \
53+
make PREFIX=$(PKGROOT); \
54+
)
55+
56+
install::
57+
mkdir -p $(ROOT)/$(PKGROOT)
58+
mkdir -p $(ROOT)/usr/lib/systemd/system
59+
mkdir -p $(ROOT)/etc
60+
mkdir -p $(ROOT)/var/spool/$(ARCHIVENAME)
61+
( \
62+
cd $(ARCHIVENAME)-$(VERSION); \
63+
make PREFIX=$(ROOT)/$(PKGROOT) install; \
64+
)
65+
install -m644 redis.service $(ROOT)/usr/lib/systemd/system/redis.service
66+
install -m644 redis.conf $(ROOT)/etc/
67+
68+
clean::
69+
rm -rf $(ARCHIVENAME)-$(VERSION)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../3rdparty/redis-4.0.2.tar.gz
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
#!/bin/bash
2+
# redis Init Script for Redis Server
3+
# chkconfig: - 20 85
4+
# description: Enable Redis Server
5+
# processname: redis-server
6+
# pidfile: /var/run/redis-server.pid
7+
8+
# @SI_Copyright@
9+
# stacki.com
10+
# v4.0
11+
#
12+
# Copyright (c) 2006 - 2017 StackIQ Inc. All rights reserved.
13+
#
14+
# Redistribution and use in source and binary forms, with or without
15+
# modification, are permitted provided that the following conditions are
16+
# met:
17+
#
18+
# 1. Redistributions of source code must retain the above copyright
19+
# notice, this list of conditions and the following disclaimer.
20+
#
21+
# 2. Redistributions in binary form must reproduce the above copyright
22+
# notice unmodified and in its entirety, this list of conditions and the
23+
# following disclaimer in the documentation and/or other materials provided
24+
# with the distribution.
25+
#
26+
# 3. All advertising and press materials, printed or electronic, mentioning
27+
# features or use of this software must display the following acknowledgement:
28+
#
29+
# "This product includes software developed by StackIQ"
30+
#
31+
# 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
32+
# neither the name or logo of this software nor the names of its
33+
# authors may be used to endorse or promote products derived from this
34+
# software without specific prior written permission.
35+
#
36+
# THIS SOFTWARE IS PROVIDED BY STACKIQ AND CONTRIBUTORS ``AS IS''
37+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
38+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL STACKIQ OR CONTRIBUTORS
40+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
41+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
42+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
43+
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
44+
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
45+
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
46+
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47+
# @SI_Copyright@
48+
49+
### BEGIN INIT INFO
50+
# Provides: redis-server
51+
# Required-Start: $local_fs $network
52+
# Required-Stop: $local_fs $network
53+
# Default-Start:
54+
# Default-Stop: 0 1 6
55+
# Short-Description: start or stop redis
56+
# Description: Redis Server Daemon
57+
### END INIT INFO
58+
59+
# source function library
60+
. /etc/rc.d/init.d/functions
61+
62+
EXEC=/opt/stack/bin/redis-server
63+
PIDFILE=/var/run/redis.pid
64+
CONF=/etc/redis.conf
65+
66+
start() {
67+
# Check PID
68+
PID=`pidofproc -p $PIDFILE`
69+
checkpid $PID && echo "Redis Server is running (pid $PID)" && return 2
70+
71+
echo -n $"Starting Redis Server: "
72+
daemon --check $EXEC --pidfile $PIDFILE \
73+
$EXEC $CONF
74+
RETVAL=$?
75+
76+
if [ $RETVAL -eq 0 ]; then
77+
success
78+
else
79+
failure
80+
fi
81+
echo
82+
}
83+
84+
stop() {
85+
echo -n $"Stopping Redis Server: "
86+
killproc -p ${PIDFILE} $prog
87+
RETVAL=$?
88+
echo
89+
}
90+
91+
restart() {
92+
stop
93+
start
94+
}
95+
96+
case "$1" in
97+
start)
98+
start
99+
;;
100+
stop)
101+
stop
102+
;;
103+
restart|force-reload)
104+
restart
105+
;;
106+
reload)
107+
;;
108+
condrestart)
109+
[ -f "$PIDFILE" ] && restart
110+
;;
111+
status)
112+
status -p $PIDFILE $EXEC
113+
;;
114+
*)
115+
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
116+
exit 1
117+
esac
118+
119+
exit $RETVAL

0 commit comments

Comments
 (0)