<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>systemd on private Homepage von Rainer Rose</title>
    <link>https://www.rainerrose.de/tags/systemd/</link>
    <description>Recent content in systemd on private Homepage von Rainer Rose</description>
    <generator>Hugo</generator>
    <language>de</language>
    <copyright>Copyright © 1998-2026 Rainer Rose. All Rights Reserved.
</copyright>
    <lastBuildDate>Sat, 28 Dec 2024 12:48:58 +0100</lastBuildDate><atom:link href="https://www.rainerrose.de/tags/systemd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Systemd</title>
      <link>https://www.rainerrose.de/docs/linux/systemd/</link>
      <pubDate>Sat, 28 Dec 2024 12:48:58 +0100</pubDate>
      <guid>https://www.rainerrose.de/docs/linux/systemd/</guid>
      <description><![CDATA[<!-- Anreißer -->

<h2 id="notizensammlung" data-numberify>Notizensammlung<a class="anchor ms-1" href="#notizensammlung"></a></h2>
<p>Dinge, die ich mir bei <code>systemd</code> nicht merken kann. Und bevor ich wieder Suchmaschinen oder man-Pages bemühen muss, schreibe ich sie hier lieber nieder.</p>]]></description>
      <content:encoded><![CDATA[<!-- Anreißer -->

<h2 id="notizensammlung" data-numberify>Notizensammlung<a class="anchor ms-1" href="#notizensammlung"></a></h2>
<p>Dinge, die ich mir bei <code>systemd</code> nicht merken kann. Und bevor ich wieder Suchmaschinen oder man-Pages bemühen muss, schreibe ich sie hier lieber nieder.</p>

<h2 id="im-hintergrund-starten" data-numberify>Im Hintergrund starten<a class="anchor ms-1" href="#im-hintergrund-starten"></a></h2>
<p>Parameter <code>--no-block</code> verwenden, damit der Prompt gleich wieder kommt und nicht auf Beendigung gewartet wird; praktisch für Backup-Jobs außerhalb der Reihe.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="ln">1</span><span class="cl">systemctl start resticprofile_full-backup.service --no-block
</span></span></code></pre></div>
<h2 id="timer-in-systemd" data-numberify>Timer in SystemD<a class="anchor ms-1" href="#timer-in-systemd"></a></h2>
<p>wird gerne von snap-Paketen genutzt, die keinen cronjob installieren.</p>
<p>Auflistung</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="ln">1</span><span class="cl">systemctl list-timers <span class="o">[</span>--all<span class="o">]</span>
</span></span></code></pre></div><p>In der Auflistung steht dann auch der timer, wo die Zeitdefinition drin
steht und welche start-Unit anzieht.</p>
<p>Verzeichnis vielfach: <code>/etc/systemd/system/foo.timer</code></p>

<h2 id="als-ersatz-für-at" data-numberify>Als Ersatz für at<a class="anchor ms-1" href="#als-ersatz-für-at"></a></h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="ln">1</span><span class="cl">systemd-run --user --on-calendar<span class="o">=</span><span class="s2">&#34;2024-12-28 10:31:19&#34;</span> Befehl Parameter....
</span></span></code></pre></div><p>ggf. <code>sudo</code> davor für <code>root</code>.</p>

<h2 id="failed-units" data-numberify>failed Units<a class="anchor ms-1" href="#failed-units"></a></h2>

<h3 id="alle-auflisten" data-numberify>Alle auflisten<a class="anchor ms-1" href="#alle-auflisten"></a></h3>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="ln">1</span><span class="cl">systemctl status --failed
</span></span></code></pre></div>
<h3 id="resetten" data-numberify>Resetten<a class="anchor ms-1" href="#resetten"></a></h3>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="ln">1</span><span class="cl">systemctl reset-failed &lt;unit-name&gt;
</span></span></code></pre></div>
<h2 id="auskunft-über-pids" data-numberify>Auskunft über pids<a class="anchor ms-1" href="#auskunft-über-pids"></a></h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="ln">1</span><span class="cl">systemctl status &lt;pid&gt;
</span></span></code></pre></div>
<h2 id="changelog" data-numberify>Changelog<a class="anchor ms-1" href="#changelog"></a></h2>
<table>
  <thead>
      <tr>
          <th>Datum</th>
          <th>Änderung</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>05.11.2025</td>
          <td>failed-Kommandos hinzugefügt</td>
      </tr>
      <tr>
          <td>28.03.2026</td>
          <td>Auskunft über pids</td>
      </tr>
  </tbody>
</table>]]></content:encoded>
    </item>
    
  </channel>
</rss>

