<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Systemd on The Gnu Pit</title><link>https://gnupit.net/systemd/</link><description>Recent content in Systemd on The Gnu Pit</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 10 Dec 2017 18:26:24 -0500</lastBuildDate><atom:link href="https://gnupit.net/systemd/index.xml" rel="self" type="application/rss+xml"/><item><title>Nginx, OCSP stapling, booting, systemd and Debian 9</title><link>https://gnupit.net/posts/systemd_nginx_fix/</link><pubDate>Sun, 10 Dec 2017 18:26:24 -0500</pubDate><guid>https://gnupit.net/posts/systemd_nginx_fix/</guid><description>&lt;p&gt;Noticed these lines in journalctl when nginx didn&amp;rsquo;t start after a reboot:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:43:30 mail1 nginx[3485]: nginx: [warn] &amp;#34;ssl_stapling&amp;#34; ignored, host not found in OCSP responder &amp;#34;ocsp.int-x3.letsencrypt.org&amp;#34; in the certificate &amp;#34;/etc/letsencrypt/live/www.example.com/fullchain.pem&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:43:30 mail1 nginx[3485]: nginx: [emerg] bind() to [&amp;lt;IPv6 address&amp;gt;]:80 failed (99: Cannot assign requested address)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:43:30 mail1 nginx[3485]: nginx: configuration file /etc/nginx/nginx.conf test failed
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:43:30 mail1 systemd[1]: nginx.service: Control process exited, code=exited status=1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:43:30 mail1 systemd[1]: nginx.service: Unit entered failed state.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:43:30 mail1 systemd[1]: nginx.service: Failed with result &amp;#39;exit-code&amp;#39;.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Dec 10 17:52:35 mail1 systemd[1]: nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Hmmm&amp;hellip;&lt;/p&gt;</description></item><item><title>Boot issue with systemd and NGINX</title><link>https://gnupit.net/posts/nginx_boot_issue/</link><pubDate>Mon, 08 May 2017 21:11:24 -0500</pubDate><guid>https://gnupit.net/posts/nginx_boot_issue/</guid><description>&lt;p&gt;I ran into a problem with NGINX failing to start on boot/reboot on my Debian 8 (Jessie) server. After reviewing what seemed like a hundred sites to try to find a fix, I stumbled across one solution that worked, but was incredibly inelegant. This was to add:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;RestartSec=30s
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Restart=on-failure
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;to nginx.service in the [Service] section using the override.conf. It worked but didn&amp;rsquo;t fix the underlying problem.&lt;/p&gt;
&lt;p&gt;A quick look using &lt;code&gt;journalctl -u nginx&lt;/code&gt; showed that the service was failing because the IPv6 address hadn&amp;rsquo;t been assigned to the network adaptor yet. This caused nginx to fail because it couldn&amp;rsquo;t bind to the IPv6 port. Here are the log lines:&lt;/p&gt;</description></item></channel></rss>