Results 1 to 2 of 2

Thread: Unix daemon starts before network dependency is up

  1. #1
    Join Date
    Dec 2010
    Thanked 2 Times in 1 Post
    Qt products
    MacOS X Unix/X11 Windows

    Default Unix daemon starts before network dependency is up

    I am trying to create a daemon that is started automatically during the boot-up. It depends on the network, local fs and remote fs services. I believe I have done everything to indicate these dependencies and I expect the daemon to be started after the network daemons are up and running. But when I look into my logs I see that my daemon S1 is consistently starting before the network daemon is available.

    The following is the init information in my script located in /etc/init.d:
    Qt Code:
    1. #!/bin/sh
    2. ### BEGIN INIT INFO
    3. # Provides: My S1 Service
    4. # Required-Start: $local_fs $network $remote_fs
    5. # Required-Stop: $local_fs $network $remote_fs
    6. # Default-Start: 2 3 4 5
    7. # Default-Stop: 0 1 6
    8. # Short-Description: start S1 Service
    9. # Description: S1 Service
    10. ### END INIT INFO
    To copy to clipboard, switch view to plain text mode 

    And the following are my entries in the rc directories:

    Qt Code:
    1. rc0.d:
    2. -> ../init.d/
    4. rc1.d:
    5. -> ../init.d/
    7. rc2.d:
    8. -> ../init.d/
    10. rc3.d:
    11. -> ../init.d/
    13. rc4.d:
    14. -> ../init.d/
    16. rc5.d:
    17. -> ../init.d/
    19. rc6.d:
    20. -> ../init.d/
    To copy to clipboard, switch view to plain text mode 

    Is there anything more I have to do or am I doing anything wrong to make sure that my service/daemon is started after the network services/daemons are available?

    I am reading up on upstart but I really like to know whats wrong with my current scipts and daemon startup.

  2. #2
    Join Date
    Feb 2012
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5

    Default Re: Unix daemon starts before network dependency is up

    This is not a QT relevant question. If you want to get answers, you may post this in a linux forum. Either linuxquestions or

Similar Threads

  1. QStateMachine doesn't starts :(
    By nudels in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2012, 00:16
  2. Replies: 3
    Last Post: 15th May 2011, 23:34
  3. Start application when OS starts
    By sophister in forum Qt Programming
    Replies: 16
    Last Post: 13th April 2011, 06:38
  4. qt4 daemon
    By akon in forum Newbie
    Replies: 10
    Last Post: 11th March 2009, 14:21
  5. DBus daemon not starting
    By Khal Drogo in forum Qt Programming
    Replies: 5
    Last Post: 7th August 2008, 15:12

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.