Search Results

Search found 1 results on 1 pages for 'spartygw'.

Page 1/1 | 1 

  • How to check if service is enabled with launchd

    - by spartygw
    I can't figure out how to check from within C/C++ if a service is enabled via launchd. I know I can use launchctl from the command line and am currently executing ' launchctl list myServiceName ' from fork/exec. I've found that boostrap_look_up() might be the way to check this but I can't find enough documentation to condense this down to a simple example. Can you shed light on this? All I need is a small function to test if my service is actually registered and available.

    Read the article

1