I have a script, that starts my server. I want to start openvpn client before it. Here my current working solution:
#!/bin/sh openvpn --client --config $OVPN_CONFIG & sleep 10 npm start
I want to avoid
sleep and check openvpn sucessfull running by output line:
Tue May 14 16:35:50 2019 Initialization Sequence Completed
How to do that? Note, that this script used as docker container entrypoint.