<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Netplan on ads' corner</title><link>https://andreas.scherbaum.la/tags/netplan/</link><description>Recent content in Netplan on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 20 Aug 2018 15:58:00 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/netplan/index.xml" rel="self" type="application/rss+xml"/><item><title>if-up and if-down scripts with systemd</title><link>https://andreas.scherbaum.la/post/2018-08-20_if-up-and-if-down-scripts-with-systemd/</link><pubDate>Mon, 20 Aug 2018 15:58:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-08-20_if-up-and-if-down-scripts-with-systemd/</guid><description>&lt;p&gt;Everybody likes &lt;em&gt;systemd&lt;/em&gt;, right? Well, not everybody. Who thought it might be a good idea to replace existing init systems with something which is big, monolithic, and not even feature complete?&lt;/p&gt;&#10;&lt;p&gt;A simple task: execute a script when an interface comes up, or goes down.&lt;/p&gt;&#10;&lt;p&gt;In the old days, on &lt;em&gt;Debian&lt;/em&gt; or &lt;em&gt;Ubuntu&lt;/em&gt;, one just added &lt;code&gt;pre-up&lt;/code&gt; and &lt;code&gt;post-down&lt;/code&gt; scripts in &lt;code&gt;/etc/network/interfaces&lt;/code&gt;. But now, that file is gone, or empty. &lt;em&gt;Ubuntu&lt;/em&gt; comes with &lt;code&gt;netplan&lt;/code&gt;, which nobody else seems to use - luckily. &lt;em&gt;NetworkManager&lt;/em&gt; is not used all the time, so one can&amp;rsquo;t depend on that either. And &lt;em&gt;systemd&lt;/em&gt; does not have an option to do something simple like taking care of interfaces coming up and down. You can write yourself a target, but that only fires for the first time, not every time.&lt;/p&gt;</description></item></channel></rss>