More PID handling fixes

This commit is contained in:
Lauri Võsandi 2021-05-03 08:14:13 +00:00
parent 4bbe0093f6
commit 168d7f1fd0
3 changed files with 9 additions and 5 deletions

View File

@ -12,7 +12,8 @@ RUN apt-get update -qq \
&& apt-get install -y -qq \ && apt-get install -y -qq \
python3-pip \ python3-pip \
openvpn \ openvpn \
strongswan strongswan \
libcharon-extra-plugins
# Dump on console what modules StrongSwan attempts to load # Dump on console what modules StrongSwan attempts to load
RUN echo '#!/bin/bash' > /usr/sbin/modprobe \ RUN echo '#!/bin/bash' > /usr/sbin/modprobe \

View File

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
rm -fv /run/certidude/*.pid
sleep 10
set -e set -e
set -x
rm -fv /run/*.pid /var/run/*.pid /run/*/*.pid /var/run/*/*.pid
sleep 10
$@ $@
AUTHORITY=$3 AUTHORITY=$3
test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem

View File

@ -1,8 +1,10 @@
#!/bin/sh #!/bin/sh
rm -fv /run/certidude/*.pid
sleep 10
set -e set -e
set -x
rm -fv /run/*.pid /var/run/*.pid /run/*/*.pid /var/run/*/*.pid
sleep 10
$@ $@
AUTHORITY=$3 AUTHORITY=$3
test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem test -f /etc/certidude/authority/$AUTHORITY/host_cert.pem
/usr/sbin/ipsec stop
/usr/sbin/ipsec start --nofork /usr/sbin/ipsec start --nofork