OpenVPN ignoring up script
#1
Sun, 2017-12-17 22:26
sandep266
-
- Offline
- 3 months 2 weeks ago
- 2017-12-17
Hey All,
I've just started using Alpine Linux for my router. Migrating from BSD land. I've run into some issues with OpenVPN ignoring UP script. Details:
i've got two client instances of OpenVPN running and both have their corresponding up / down scripts. Keeping in line with alpine enforced naming convention I've named
instance 1 up / down scripts
openvpn.int1-up.sh openvpn.int1-down.sh
instance 2 up / down scripts
openvpn.int2-up.sh openvpn.int2-down.sh
Problem is that the instance 2 fails to executes the up script, instance 1 works as expected. I have to restart the second instance to get the up script to work after boot.
Any pointers will be helpful.
Thanks
you should use : rc-update add local
than put your scripts inside /etc/local.d/ :
like they explain here (https://forum.alpinelinux.org/comment/543#comment-543)
you may also want to look at OpenRC Dependency Behavior
https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior