Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8843523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:14:43+00:00 2026-06-14T11:14:43+00:00

I am new to Linux. I recently ported my C++ window service to linux

  • 0

I am new to Linux. I recently ported my C++ window service to linux daemon.

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.

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

I have researched a bit on where to deploy in Linux and found quite confusing:

  1. Some people say the binary should be deployed in /usr/bin/my_app
  2. The log folder should be /var/log/my_app
  3. Where should I place the data file?
  4. The start up script should be placed in /etc/init.d/my_app

Thanks for your help in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:14:44+00:00Added an answer on June 14, 2026 at 11:14 am

    You might find this Wikipedia article helpful, it explains the purpose of the various folders in a typical linux file system.

    Points 1, 2 and 4 are correct: your daemon should be in /usr/bin, writing logs to /var/log and the start-up script should be in /etc/init.d.

    As for the “data” file, it depends on what it actually contains. If it’s something that your application uses for configuration, it should go to /etc/yourapp. Otherwise it belongs in /usr/share/yourapp.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently moved my app from a linux machine to windows, and I
We have a c++ application which I recently ported from Linux/gcc to build on
Recently, I switched my development environment from Windows to Linux. So far, I have
I have recently taken over a linux box running subversion. The folder where the
I am new to Linux and was introduced to the & recently. I have
I recently installed rails in fedora 12. I'm new to linux as well. Everything
I'm pretty new to C++ and recently switched from compiling in g++ on Linux
I recently made the move from Linux development to Windows development. And as much
I have recently found out that the future of Qt has become uncertain as
I have a headless workstation running Ubuntu 12.04 server and recently installed new Tesla

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.