View previous topic :: View next topic |
Author |
Message |
Fran Guru
Joined: 29 Feb 2004 Posts: 530 Location: Coruña (Spain)
|
Posted: Tue Apr 16, 2013 11:18 am Post subject: systemd vs openvpn |
|
|
Ok, so I've migrated to systemd to see what the fuss is all about, and I don't dislike what I see. But I'm having problems with openvpn: I understand I have to systemctl enable openvpn@openvpn, where the second openvpn is due to my configuration being in openvpn.conf. That works, but only after I have modprobed tun by hand. Otherwise it fails. With openrc, tun was auto loaded. I think I can use /etc/modules-load.d/ to load the tun module at boot, but should't systemd load it when needed (i.e., when starting openvpn@whatever)? |
|
Back to top |
|
|
mani001 Guru
Joined: 04 Dec 2004 Posts: 485 Location: Oleiros
|
Posted: Sat Apr 20, 2013 8:49 am Post subject: |
|
|
Damn (i.e. córcholis ) , I was about to try systemd myself and I also use openvpn... I'm glad that you tried first Did you get to solve it? |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Sat Apr 20, 2013 9:10 am Post subject: |
|
|
I think the way is that you have your extra modules needed in, for example /etc/modules-load.d/tun.conf (so yes, you thought right ).
> but should't systemd load it when needed (i.e., when starting openvpn@whatever)?
Does openrc load the tun module on demand or at boot? Anyway I don't believe kernel modules are, maybe you are confused with the on-demand service/socket/etc loading? |
|
Back to top |
|
|
Fran Guru
Joined: 29 Feb 2004 Posts: 530 Location: Coruña (Spain)
|
Posted: Sat Apr 20, 2013 3:17 pm Post subject: |
|
|
mani001 wrote: | Damn (i.e. córcholis ) , I was about to try systemd myself and I also use openvpn... I'm glad that you tried first Did you get to solve it? |
Yep, just load tun at boot (echo "tun" > /etc/modules-load.d/tun.conf). Not the most elegant solution but hey, it works.
rorgoroth wrote: | Does openrc load the tun module on demand or at boot? Anyway I don't believe kernel modules are, maybe you are confused with the on-demand service/socket/etc loading? |
hmmm... IDK, maybe the init.d/openvpn script modprobed tun. I can't check it now; I removed all traces of openrc in etc/init.d (after finding a replacement for the essential /etc/init.d/functions.sh).
Anyway, I think the openvpn@.service should take care of loading the tun module somehow. |
|
Back to top |
|
|
|