launchd daemon and Distributed Objects.

  • Hi Everyone.

    I want to create a new daemon, which is Foundation command-line app.
    I want it to be a daemon
    which is launched by launchd. Does anyone know how I should configure
    the plist file for the
    launchd daemon?

    I've taken a look at the SampleD sample code. It is a complete
    mystery as to figure out how
    to use launchd to configure a Foundation app. SampleD seems to set a
    Socket stream, which
    doesn't mesh with anything that I would want to do with a Distributed
    Object based tool.

    Could I just ignore the SampleD code, and set the "aways run" flags
    in the plist file?

    Thanks!

    bob..

    Robert Monaghan
    Glue Tools
    629 State St. Suite 220
    Santa Barbara, CA, 93101
    United States

    tel: +1 805 456 7997
    fax: +1 805 456 7998

    www.gluetools.com
  • On 22 Oct 2007, at 03:42, Robert Monaghan wrote:
    > I want to create a new daemon, which is Foundation command-line
    > app. I want it to be a daemon
    > which is launched by launchd. Does anyone know how I should
    > configure the plist file for the
    > launchd daemon?
    >
    If you read the manual page of the configuration parameters it should
    help, Google as well. Check this: <http://www.macgeekery.com/tips/
    all_about_launchd_items_and_how_to_make_one_yourself
    >.

    > I've taken a look at the SampleD sample code. It is a complete
    > mystery as to figure out how
    > to use launchd to configure a Foundation app. SampleD seems to set
    > a Socket stream, which
    > doesn't mesh with anything that I would want to do with a
    > Distributed Object based tool.
    >
    I wouldn't worry about these when dealing with DO, and:

    > Could I just ignore the SampleD code, and set the "aways run" flags
    > in the plist file?
    >
    That would make the most sense for your tool anyway. Just set it up
    as a DO server and let other tools connect to it.

    Cheers,
    Annard
  • Thanks!

    I had a suspicion that was the case. It wasn't clear in the SampleD
    readme that there was
    alternatives to setting up a launchd daemon.

    bob.

    Robert Monaghan
    Glue Tools
    629 State St. Suite 220
    Santa Barbara, CA, 93101
    United States

    tel: +1 805 456 7997
    fax: +1 805 456 7998

    www.gluetools.com

    On Oct 22, 2007, at 3:31 AM, <ab_lists...> wrote:

    >
    > On 22 Oct 2007, at 03:42, Robert Monaghan wrote:
    >> I want to create a new daemon, which is Foundation command-line
    >> app. I want it to be a daemon
    >> which is launched by launchd. Does anyone know how I should
    >> configure the plist file for the
    >> launchd daemon?
    >>
    > If you read the manual page of the configuration parameters it
    > should help, Google as well. Check this: <http://www.macgeekery.com/
    > tips/all_about_launchd_items_and_how_to_make_one_yourself>.
    >
    >> I've taken a look at the SampleD sample code. It is a complete
    >> mystery as to figure out how
    >> to use launchd to configure a Foundation app. SampleD seems to set
    >> a Socket stream, which
    >> doesn't mesh with anything that I would want to do with a
    >> Distributed Object based tool.
    >>
    > I wouldn't worry about these when dealing with DO, and:
    >
    >> Could I just ignore the SampleD code, and set the "aways run"
    >> flags in the plist file?
    >>
    > That would make the most sense for your tool anyway. Just set it up
    > as a DO server and let other tools connect to it.
    >
    > Cheers,
    > Annard
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today