Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 883c50e

Browse files
committed
Add loop script
1 parent 5be0e15 commit 883c50e

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

cli/alpine-3.15.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN chmod +x /opt/litea/init.d/*
77
COPY ./cli/conf /opt/litea/conf
88

99
COPY ./lit.sh /usr/local/bin/lit
10+
COPY ./loop.sh /usr/local/bin/loop
1011
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint
1112

1213
RUN chmod +x \

cli/debian-bullseye.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN chmod +x /opt/litea/init.d/*
77
COPY ./cli/conf /opt/litea/conf
88

99
COPY ./lit.sh /usr/local/bin/lit
10+
COPY ./loop.sh /usr/local/bin/loop
1011
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint
1112

1213
RUN chmod +x \

cli/debian-buster.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN chmod +x /opt/litea/init.d/*
77
COPY ./cli/conf /opt/litea/conf
88

99
COPY ./lit.sh /usr/local/bin/lit
10+
COPY ./loop.sh /usr/local/bin/loop
1011
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint
1112

1213
RUN chmod +x \

fpm/alpine-3.15.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN chmod +x /opt/litea/init.d/*
77
COPY ./fpm/conf /opt/litea/conf
88

99
COPY ./lit.sh /usr/local/bin/lit
10+
COPY ./loop.sh /usr/local/bin/loop
1011
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint
1112

1213
RUN chmod +x \

fpm/debian-bullseye.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN chmod +x /opt/litea/init.d/*
77
COPY ./fpm/conf /opt/litea/conf
88

99
COPY ./lit.sh /usr/local/bin/lit
10+
COPY ./loop.sh /usr/local/bin/loop
1011
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint
1112

1213
RUN chmod +x \

fpm/debian-buster.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN chmod +x /opt/litea/init.d/*
77
COPY ./fpm/conf /opt/litea/conf
88

99
COPY ./lit.sh /usr/local/bin/lit
10+
COPY ./loop.sh /usr/local/bin/loop
1011
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint
1112

1213
RUN chmod +x \

loop.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
trap "stop_gracefully" TERM
4+
LOOP=1
5+
6+
stop_gracefully () {
7+
echo "Stopping gracefully, bye!"
8+
LOOP=0
9+
}
10+
11+
while [ "$LOOP" = "1" ]
12+
do
13+
sleep 1
14+
done

0 commit comments

Comments
 (0)