<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">Jerry,<br>
<br>
Apple is clearly trying to transition to a different
architecture/philosophy for agents and daemons. But while they're
getting their ducks lined up, the legacy launchctl commands still work
(more or less) as advertised.<br>
<br>
Have you tried 'launchctl remove <orphaned-service-identifier>' to
make launchd forget?<br>
<br>
James<br>
<blockquote style="border: 0px none;"
cite="mid:50AC60A9-25A2-4225-AAEC-07B54837FCE8@ieee.org" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="width:100%;border-top:1px solid #EDEEF0;padding-top:5px"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
        <a moz-do-not-send="true" href="mailto:jerry@ieee.org"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Jerry Krinock</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#9FA2A5"><span style="padding-left:6px">August
23, 2015 at 6:15 AM</span></font></div> </div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div>Ever since 10.5, my apps
have used long-running launchd agents to detect filesystem changes, and
these in turn schedule one-shot agents to perform tasks. They do this
by writing and removing plist files in ~/Library/LaunchAgents, and by
running launchctl with subcommands ‘load’ and ‘unload’.<br><br>I just
discovered that running this command:<br><br> launchctl print-disabled
gui/`id -u`<br><br>shows hundreds of such services, probably every one
which my app has created for the past year or more. Apparently, my
agents are not being completely removed, only “disabled”. How do I
remove them?<br><br>I tried ‘unbootstrap’, but got:<br><br> Command is
not yet implemented.<br><br>* * *<br><br>More broadly, is there an
article which explains the recent changes in launchd, so that I can
properly update my apps? The current launchctl man page is
incomprehensible to me until I get to the LEGACY SUBCOMMANDS section.
No more “agents", it seems; everything is a “service”.<br><br>_______________________________________________<br>launchd-dev
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:launchd-dev@lists.macosforge.org">launchd-dev@lists.macosforge.org</a><br><a class="moz-txt-link-freetext" href="https://lists.macosforge.org/mailman/listinfo/launchd-dev">https://lists.macosforge.org/mailman/listinfo/launchd-dev</a><br></div></div>
</blockquote>
<br>
</body></html>