forked from pershyn/storm-deb-packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorm-drpc.conf
48 lines (36 loc) · 1.35 KB
/
storm-drpc.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ubuntu upstart file at /etc/init/storm-drpc.conf
limit nofile 32768 32768
start on (local-filesystems and net-device-up IFACE=eth0)
stop on [!12345]
respawn
script
# Source /etc/default
. /etc/default/storm
. /etc/default/storm-drpc
# Set STORM Options
STORM_CMD="-classpath $STORM_CLASSPATH \
-Xms$STORM_DRPC_JVM_MEMORY \
-Xmx$STORM_DRPC_JVM_MEMORY \
-Djava.library.path=\"$JAVA_LIBRARY_PATH\" \
-Dstorm.options=\"$STORM_OPTIONS\" \
-Dstorm.home=$STORM_HOME \
$STORM_DRPC_JVM_OPTS \
backtype.storm.daemon.drpc"
if [ "x$ENABLE" = "xyes" ]; then
exec start-stop-daemon --start --pidfile ${STORM_DRPC_PID} --make-pidfile --chuid ${STORM_USER} --chdir ${STORM_HOME} --name storm-drpc --exec /usr/bin/java -- ${STORM_CMD}
fi
# Set STORM Options
# STORM_CMD="-classpath $STORM_CLASSPATH \
# -Xms$STORM_DRPC_JVM_MEMORY \
# -Xmx$STORM_DRPC_JVM_MEMORY \
# -Djava.library.path=\"$JAVA_LIBRARY_PATH\" \
# -Dstorm.options=\"$STORM_OPTIONS\" \
# -Dstorm.home=$STORM_HOME \
# -Dlog4j.configuration=storm.log.properties \
# -Dlogfile.name=drpc.log \
# $STORM_DRPC_JVM_OPTS \
# backtype.storm.daemon.drpc"
# if [ "x$ENABLE" = "xyes" ]; then
# exec start-stop-daemon --start --pidfile ${STORM_DRPC_PID} --make-pidfile --chuid ${STORM_USER} --chdir ${STORM_HOME} --exec /usr/bin/java -- ${STORM_CMD}
# fi
end script