title: Procedure and location to deploy a daemon
body: <p>I am new to Linux. I recently ported my C++ window service to linux daemon.</p>
  
  <p>In windows, I have the below folder structure. I found the structure is easy to allow other colleagues to follow and upgrade to new version.</p>
  
  <pre><code>C:\services\my_app\version_1_0\my_app.exe  
  C:\services\my_app\version_1_0\my_app.config.xml  
  C:\services\my_app\version_1_0\dependencies1.dll  
  C:\services\my_app\version_1_0\log\my_app_20121110.log  
  C:\services\my_app\version_1_0\data\my_app_data_20121110.txt  
  C:\services\my_app\start_my_app.bat
  </code></pre>
  
  <p>I have researched a bit on where to deploy in Linux and found quite confusing:  </p>
  
  <ol>
  <li>Some people say the binary should be deployed in /usr/bin/my_app</li>
  <li>The log folder should be /var/log/my_app   </li>
  <li>Where should I place the data file?</li>
  <li>The start up script should be placed in /etc/init.d/my_app</li>
  </ol>
  
  <p>Thanks for your help in advance.</p>