File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ zeo-address = zeo:8100
15
15
16
16
[instance]
17
17
<= instance1
18
+ debug-mode = off
18
19
blob-storage = /data/blobstorage
19
20
shared-blob = on
20
21
zope-conf-additional =
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ services:
145
145
test : " curl -f localhost:8087/$$PLONE_PATH/@@ok"
146
146
labels :
147
147
SERVICE_NAME : " worker-cron"
148
- restart :
149
- unless-stopped
148
+ # restart:
149
+ # unless-stopped
150
150
worker-async :
151
151
image : imiobe/iadelib:latest
152
152
command : instance-async
Original file line number Diff line number Diff line change @@ -28,6 +28,27 @@ function wait_for_cron() {
28
28
done
29
29
}
30
30
31
+ function start() {
32
+ echo " Starting $1 "
33
+ cmd=" bin/$1 "
34
+ _stop () {
35
+ echo " Forcing to stop"
36
+ $cmd stop
37
+ case " $cmd " in
38
+ " bin/zeoserver" )
39
+ if [[ -f /data/filestorage/Data.fs.lock ]]; then
40
+ kill -TERM " $( cat /data/filestorage/Data.fs.lock) " 2> /dev/null
41
+ fi
42
+ ;;
43
+ * )
44
+ ;;
45
+ esac
46
+ }
47
+
48
+ trap _stop
49
+ $cmd start
50
+ exec " $cmd " " logtail"
51
+ }
31
52
32
53
setup " $1 "
33
54
@@ -41,7 +62,6 @@ case "$1" in
41
62
exec " bash"
42
63
;;
43
64
* )
44
- echo " Starting $1 "
45
- exec " bin/python" " bin/$1 " " fg"
65
+ start " $1 "
46
66
;;
47
67
esac
You can’t perform that action at this time.
0 commit comments