OpenVPN ignoring up script

3 posts / 0 new
Last post
#1 Sun, 2017-12-17 22:26
sandep266
  • sandep266's picture
  • Offline
  • Last seen: 3 months 2 weeks ago
  • Joined: 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

Fri, 2018-02-09 10:45
jodumont
  • jodumont's picture
  • Offline
  • Last seen: 16 hours 44 min ago
  • Joined: 2018-02-06

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)

Wed, 2018-03-28 11:34
jodumont
  • jodumont's picture
  • Offline
  • Last seen: 16 hours 44 min ago
  • Joined: 2018-02-06

you may also want to look at OpenRC Dependency Behavior
https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior

Log in or register to post comments