<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nelnal_programing</author_name>
  <author_url>https://blog.hatena.ne.jp/nelnal_programing/</author_url>
  <blog_title>nelnal@programing</blog_title>
  <blog_url>https://nelnal-programing.hatenadiary.org/</blog_url>
  <categories>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>職場のグループで使用しているサーバ上で常駐ソフトを使っているのだが、 これが良く落ちるのでそれに対する対策。 ここではソフト名を仮に hetare としておきます。 また、hetare は /usr/local/bin に置いてあるモノとします。 #!/bin/sh isEnable=`ps -ef | grep hetare | grep -vc grep` if [ $isEnable -eq 0 ]; then /usr/local/bin/hetare fi 尚、作成したスクリプト名には注意が必要です。 スクリプト名に対象のhetareを含んでいるとisEnableは常に1以上になって…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnelnal-programing.hatenadiary.org%2Fentry%2F20090902%2F1251854967&quot; title=&quot; ソフトが落ちてるかチェックして落ちてたら起動。 - nelnal@programing&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>2009-09-02 10:29:27</published>
  <title> ソフトが落ちてるかチェックして落ちてたら起動。</title>
  <type>rich</type>
  <url>https://nelnal-programing.hatenadiary.org/entry/20090902/1251854967</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
