<?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>cygwin</anon>
  </categories>
  <description>Cygwinのcygrunsrvで手軽にWindowsサービスを作ることが出来る。簡単だった。どうして今までやらなかったのか後悔した。やってみたら、拍子抜けするくらいに簡単だった。 Windowsサービスを作って制御する cygrunsrv.exe ポイントは以下の3点 Cygwin環境のスクリプトファイルをそのままサービスに出来る。 shebangを使ったスクリプトがサービスになる。 exeを作らなくても良い。 とりあえず作ってみました。 サンプルを使った例。 サンプルの流れはこんな感じ。 1秒に一回ログに書き出す。rubyで。 サービス登録する。 起動する サービス起動を確認する 停止する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20111219%2F1324303842&quot; title=&quot; CygwinでWindowsサービスを作る。簡単だった。 - それマグで！&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>http://cdn-ak.f.st-hatena.com/images/fotolife/t/takuya_1st/20111219/20111219230241.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-12-19 23:10:42</published>
  <title> CygwinでWindowsサービスを作る。簡単だった。</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/20111219/1324303842</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
