Find the answer to your Linux question:
Results 1 to 7 of 7
I am very new to Linux and have a fairly simple question. I have a file in my /etc/rc2.d directory that I want to load as a service during startup. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4

    Help with a simple question


    I am very new to Linux and have a fairly simple question. I have a file in my /etc/rc2.d directory that I want to load as a service during startup. How do I do this?

    Any help is appreciated.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,439
    Hi and welcome

    That depends a bit on your version of ubuntu.
    Recently, init has been replace with upstart.

    If upstart is used on your machine, have a look here:
    https://help.ubuntu.com/community/UpstartHowto
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4
    Thank you for the response. After reading the link you provided I am still unsure how a change a specific file to run at startup. I have only started using Linux with-in the past 2 months, so I hardly know anything.

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,439
    Which version of ubuntu do you use?
    Depending on that, "init" or "upstart" are responsible for the startup of your system.
    So the answer may differ upon that.

    Also:
    Which daemon do you want to start? Did you write it yourself or where is it from?
    And why did you choose rc2?
    Can you maybe show the init script, that you put into rc2.d?
    You must always face the curtain with a bow.

  6. #5
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4
    It is a question on a homework assignment;

    Assume your pwd is in your homedirectory. There is a file called "K10HTC" in the /etc/rc2.d directory. What would you type at a command line to enable K10HTC to be loaded as a service during startup?

  7. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,439
    Sorry, but we cannot answer homework questions due to the forum rules.

    Also the question is not clear, if you are supposed to do it manually or use a distribution specific tool.
    I would first find out, which Distribution you use, and then Google for "init" and this distri.
    You must always face the curtain with a bow.

  8. #7
    Just Joined!
    Join Date
    Oct 2012
    Posts
    4
    Thank you for your help, I understand why you cannot help any further. I have "Googled" this problem for 2 hours and have found nothing concrete.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •