<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>linux</anon>
    <anon>systemd</anon>
  </categories>
  <description>systemd のサービスを定期的に再起動する systemd で作ったサービスを定期的に再起動したい。 定期的に再起動する必要があるのか。と問われれば、私自身も答えに窮するのだけれど。 今回は pip install しているpython パッケージや npm run で起動している元になっている npm/node_moduleを、定期的更新して再起動をしたいなと思ったんですよ。 systemd の書き方 [Service] Restart=always RuntimeMaxSec=864000 unit ファイルに上記のように書くと定期的に再起動がかかる。 仕組みの説明 RuntimeMa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2019%2F08%2F22%2F131146&quot; title=&quot;systemd のdaemonサービスを定期的に再起動（自動再起動）する unit ファイルの書き方- timer Units の代替手段 - それマグで！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-22 13:11:46</published>
  <title>systemd のdaemonサービスを定期的に再起動（自動再起動）する unit ファイルの書き方- timer Units の代替手段</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2019/08/22/131146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
