Better s6 service stop handling
This commit is contained in:
parent
74b7d9478f
commit
ed2e1193cb
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 cts }
|
||||||
|
foreground { s6-svwait -d -t 3000 nginx }
|
||||||
|
1
cts/lxc/etc/services.d/cts/down-signal
Normal file
1
cts/lxc/etc/services.d/cts/down-signal
Normal file
@ -0,0 +1 @@
|
|||||||
|
SIGINT
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 frontlinesms }
|
||||||
|
foreground { s6-svwait -d -t 3000 x11 }
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 nginx }
|
||||||
|
foreground { s6-svwait -d -t 3000 php-fpm }
|
||||||
|
3
mifosx/lxc/etc/services.d/.s6-svscan/finish
Executable file
3
mifosx/lxc/etc/services.d/.s6-svscan/finish
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
|
foreground { s6-svwait -d -t 3000 mifosx }
|
6
mifosx/lxc/etc/services.d/mifosx/run
Executable file
6
mifosx/lxc/etc/services.d/mifosx/run
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
|
cd /srv/tomcat
|
||||||
|
fdmove -c 2 1
|
||||||
|
s6-setuidgid mifosx
|
||||||
|
catalina.sh run
|
@ -39,9 +39,10 @@ RUN EOF
|
|||||||
rm /tmp/locale-cs.patch
|
rm /tmp/locale-cs.patch
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# s6 required for single service due to hanging threads
|
||||||
|
COPY lxc
|
||||||
|
|
||||||
MOUNT FILE /srv/mifosx/conf/server.xml srv/tomcat/conf/server.xml
|
MOUNT FILE /srv/mifosx/conf/server.xml srv/tomcat/conf/server.xml
|
||||||
MOUNT FILE /srv/mifosx/conf/context.xml srv/tomcat/webapps/fineract-provider/META-INF/context.xml
|
MOUNT FILE /srv/mifosx/conf/context.xml srv/tomcat/webapps/fineract-provider/META-INF/context.xml
|
||||||
|
|
||||||
USER 8012 8012
|
CMD s6-svscan /etc/services.d
|
||||||
WORKDIR /srv/tomcat
|
|
||||||
CMD catalina.sh run
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 build2xlsform }
|
||||||
|
foreground { s6-svwait -d -t 3000 odkbuild }
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
SIGINT
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
cd /srv/opendatakit-build
|
cd /srv/opendatakit-build
|
||||||
fdmove -c 2 1
|
fdmove -c 2 1
|
||||||
foreground { /usr/sbin/update-ca-certificates }
|
foreground { update-ca-certificates }
|
||||||
s6-setuidgid odkbuild
|
s6-setuidgid odkbuild
|
||||||
bundle exec rackup config.ru -o 0.0.0.0 -p 8080
|
bundle exec rackup config.ru -o 0.0.0.0 -p 8080
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 openmapkit }
|
||||||
|
@ -36,6 +36,7 @@ RUN EOF
|
|||||||
rm -rf /root/.cache /root/.config /root/.node-gyp /root/.npm
|
rm -rf /root/.cache /root/.config /root/.node-gyp /root/.npm
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# s6 required for single service due to inability of nodejs to process signals when running as PID 1
|
||||||
COPY lxc
|
COPY lxc
|
||||||
|
|
||||||
MOUNT FILE /srv/openmapkit/conf/settings.js srv/openmapkit/settings.js
|
MOUNT FILE /srv/openmapkit/conf/settings.js srv/openmapkit/settings.js
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 nginx }
|
||||||
|
foreground { s6-svwait -d -t 3000 pandora }
|
||||||
|
foreground { s6-svwait -d -t 3000 pandora-cron }
|
||||||
|
foreground { s6-svwait -d -t 3000 pandora-encoding }
|
||||||
|
foreground { s6-svwait -d -t 3000 pandora-tasks }
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 nginx }
|
||||||
|
foreground { s6-svwait -d -t 3000 uwsgi }
|
||||||
|
1
sahana/lxc/etc/services.d/uwsgi/down-signal
Normal file
1
sahana/lxc/etc/services.d/uwsgi/down-signal
Normal file
@ -0,0 +1 @@
|
|||||||
|
SIGINT
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 nginx }
|
||||||
|
foreground { s6-svwait -d -t 3000 php-fpm }
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/execlineb -P
|
||||||
|
|
||||||
/bin/true
|
foreground { s6-svwait -d -t 3000 nginx }
|
||||||
|
foreground { s6-svwait -d -t 3000 php-fpm }
|
||||||
|
Loading…
Reference in New Issue
Block a user