Menu

#3 Run as background task in Linux

open
nobody
5
2002-02-22
2002-02-22
No

Hi.
I cant get the opendcd to work in the background on
Linux Redhat 7.2. Any problems with this or is it just
me?!

Im starting it with the command:
"nohup ./opendcd &"

Thanks in advance..

// Peter

Discussion

  • Nobody/Anonymous

    Logged In: NO

    this may nto be of interest to you but, one thing I do with
    processes that won't run in background cleanly, I don't
    feel comfortable running that way, etc.. I use screen.
    And if you are already familiar with it sorry but if not:
    it's pretty simple. Just type screen, which will open what
    looks like a new shell. start the command you wish to run
    hit ctrl + a, ctrl + d to detach from the screened
    process. At that point you can log off or whatever else
    you wish to do. To get back to the process to monitor it
    simply login and type screen -R.

     
  • Peter Carlsson

    Peter Carlsson - 2002-04-01

    Logged In: YES
    user_id=454744

    Yes, i tried screen. But i want it to start at boot as an
    service so i dont have to bother to start it everytime i
    reboot the box etc.

    I tried to run it in rc.local but then it runs as root.
    Thats not good enough.

    Any ideas?
    Maybe the authour knows? :)

    / Peter

     
  • Fredrik Drugge

    Fredrik Drugge - 2002-09-20

    Logged In: YES
    user_id=614857

    Try out daemontools, which will help you run the process at
    boot.
    It will continuesly (every 5 sec) check that the process is
    running, and will start it again if needed.
    http://cr.yp.to/daemontools.html

    // Fredrik

     
  • Nobody/Anonymous

    Logged In: NO

    what lines did you add to rc.local to get it to run,

    I am on a dedicated server and have to keep a permanent
    telnet connection open

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.