Merge pull request #221 from flashbots/fix-listener-small-image
Fix listener to work with more secure image
This commit is contained in:
commit
4a4992a0f9
12
listener
12
listener
@ -3,9 +3,9 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
NAME=listener
|
NAME=listener
|
||||||
PIDFILE=/var/run/$NAME.pid
|
PIDFILE=/home/flashbot/$NAME.pid
|
||||||
DAEMON=/root/.poetry/bin/poetry
|
DAEMON=/bin/bash
|
||||||
DAEMON_OPTS="run python listener.py"
|
DAEMON_OPTS='-c "poetry run python listener.py"'
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
@ -13,11 +13,12 @@ case "$1" in
|
|||||||
start-stop-daemon \
|
start-stop-daemon \
|
||||||
--background \
|
--background \
|
||||||
--chdir /app \
|
--chdir /app \
|
||||||
|
--chuid flashbot \
|
||||||
--start \
|
--start \
|
||||||
--quiet \
|
--quiet \
|
||||||
--pidfile $PIDFILE \
|
--pidfile $PIDFILE \
|
||||||
--make-pidfile \
|
--make-pidfile \
|
||||||
--startas $DAEMON -- $DAEMON_OPTS
|
--startas /bin/bash -- -c "poetry run python listener.py"
|
||||||
echo "."
|
echo "."
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
@ -36,11 +37,12 @@ case "$1" in
|
|||||||
start-stop-daemon \
|
start-stop-daemon \
|
||||||
--background \
|
--background \
|
||||||
--chdir /app \
|
--chdir /app \
|
||||||
|
--chuid flashbot \
|
||||||
--start \
|
--start \
|
||||||
--quiet \
|
--quiet \
|
||||||
--pidfile $PIDFILE \
|
--pidfile $PIDFILE \
|
||||||
--make-pidfile \
|
--make-pidfile \
|
||||||
--startas $DAEMON -- $DAEMON_OPTS
|
--startas /bin/bash -- -c "poetry run python listener.py"
|
||||||
echo "."
|
echo "."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user