<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mattintosh4</author_name>
  <author_url>https://blog.hatena.ne.jp/mattintosh4/</author_url>
  <blog_title>mattintosh note</blog_title>
  <blog_url>https://mattintosh-note.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>AWS</anon>
    <anon>Amazon Linux 1</anon>
    <anon>Amazon Linux 2</anon>
    <anon>lsyncd</anon>
    <anon>monit</anon>
  </categories>
  <description>Amazon Linux 2 で monit で何らかのプロセスを監視させるとき、そのプロセスの PID ファイルを指定する（PID ファイルじゃなくても出来るのだが）。 Amazon Linux 1（以下 amzn1）では lsyncd 使ってるときに /var/run/lsyncd.pid が作成されてた気がするんだけど Amazon Linux 2（以下 amzn2）にしてから /etc/lsyncd.conf で pidfile = を指定しても作成されなかったのでちょっと確認することにした。 まずはそれぞれの実行状態。 amzn1 $ ps w -C lsyncd PID TTY S…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmattintosh-note.jp%2Fentry%2F20201206%2F1607255269&quot; title=&quot;monitでlsyncdをモニタリングしたいけどpidfileが作成されない - mattintosh note&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>2020-12-06 20:47:49</published>
  <title>monitでlsyncdをモニタリングしたいけどpidfileが作成されない</title>
  <type>rich</type>
  <url>https://mattintosh-note.jp/entry/20201206/1607255269</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
