On Mon, 23 Mar 2020 18:46:11 -0600 Bob Proulx <b...@proulx.com> wrote:
> Scott Kitterman wrote: > > On Monday, March 23, 2020 7:47:25 PM EDT Bob Proulx wrote: > > But don't forget I also said: > > > > I know you said you are running Fedora but I imagine that Fedora > > > has something like this but in a different place. Doesn't Fedora > > > have a /etc/sysconfig/network-scripts/ directory where event > > > scripts reside? I am sure a Fedora knowledgeable person would be > > > able to say. > > > > On my Debian (and therefore Ubuntu, Mint, other derivatives) I would > > > add a script /etc/network/if-up.d/postfix-local (in addition to the > > > already existing "postfix" script there) that does this when the VPN > > > interface comes up, and a script /etc/network/if-down.d/postfix-local > > > for the other end. > > > > if-up and if-down are Debian (and derivative) specific. I don't > > believe it is shared with distros from any other lineage. > > Right. I said that. But many people like Fedora. I hear it is a > capable OS. Therefore I assume it must have capability. Even if you > and I do not know how it should be done ourselves. > > What about /etc/sysconfig/network-scripts/ifup-post and the others? I > see a /etc/sysconfig/network-scripts/ifup-tunnel event script. Surely > there is a Right Place in there somewhere to insert an event driven > action? Those appear to source a file /etc/sysconfig/network that > could be (ab)used for this purpose too. If I had no other way then I > would wedge it in there. > > I am looking at RHEL which is as close to a Fedora system as I have > available to peek into at this moment. But I would find it very > shocking if the answer really is that Fedora does not have this > capability. Thanks very much for this. Yes, indeed, on Fedora 31, there is the directory called /etc/syconfig/network-scripts and there are scripts called ifup-* and ifdown-* However, I am a little confused as to what I should do. It appears to me that an example such as here: https://blog.skbali.com/2019/03/start-a-script-on-boot-using-systemd/ would be enough to get this started at boot? Many thanks and best wishes, Ranjan -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.