-
Notifications
You must be signed in to change notification settings - Fork 1
/
cleanmojave.sh
773 lines (758 loc) · 49.9 KB
/
cleanmojave.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
#!/bin/bash
## CleanMojave.sh ##
## A script to unload unnecessary LaunchAgents and LaunchDaemons from MacOS 10.14 ##
################################################"
## DO NOT RUN THIS SCRIPT BLINDLY #"
## YOU'LL PROBABLY REGRET IT... #"
## #"
## READ IT THOROUGHLY #"
## AND EDIT TO SUIT YOUR NEEDS #"
################################################"
## run with 'testrun' argument to do a testrun that only echoes commands (bash cleanmojave.sh testrun) ##
## run with 'dontmove' argument to not mv .plist files to .bak (bash cleanmojave.sh dontmove) ##
## run with 'restore' argument to reload daemons (bash cleanmojave.sh restore) ##
## run with 'disable' argument to only disable daemons and not restore unlisted ones (bash cleanmojave.sh disable) ##
## Resources: ##
# https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3#gistcomment-2701248
# https://github.com/meson10/mac_tej/blob/master/nos.sh
# https://cirrusj.github.io/Yosemite-Stop-Launch/
# https://www.heise.de/mac-and-i/artikel/Die-Systemprozesse-von-macOS-Sierra-3715619.html?seite=all
# http://www.macinside.info/browse.php
# https://www.manpagez.com/man/
# https://sethc23.github.io/wiki/OSX/Mac_OS_X_and_iOS_Internals_To_the_Apple%27s_Core.pdf
## colors ##
inv='\033[0;30m\033[47m'
clr=$(tput sgr0)
## command line flags ##
# restore all #
if [[ " ${@}[*] " == *" restore"* ]]; then
restore=true
# disable only #
elif [[ " ${@}[*] " == *" disable"* ]]; then
disableonly=true
fi
# testrun y/n #
if [[ " ${@}[*] " == *" testrun"* ]]; then
testrun=true
fi
# move plist to .bak y/n #
if [[ " ${@}[*] " == *" dontmove"* ]]; then
dontmove=true
fi
## Protected Services than can break system while disabling/enabling ##
Protected=(
/System/Library/LaunchDaemons/com.apple.getty.plist
)
## LaunchAgents/LaunchDaemons to unload (uncomment): ##
LaunchAgents=(
# /System/Library/LaunchAgents/com.apple.accessibility.dfrhud.plist
# /System/Library/LaunchAgents/com.apple.AccessibilityVisualsAgent.plist
#/System/Library/LaunchAgents/com.apple.accountsd.plist
/System/Library/LaunchAgents/com.apple.AddressBook.abd.plist #AddressBook Manager
/System/Library/LaunchAgents/com.apple.AddressBook.AssistantService.plist
/System/Library/LaunchAgents/com.apple.AddressBook.ContactsAccountsService.plist
/System/Library/LaunchAgents/com.apple.AddressBook.SourceSync.plist
# /System/Library/LaunchAgents/com.apple.AirPlayUIAgent.plist
# /System/Library/LaunchAgents/com.apple.AirPortBaseStationAgent.plist
# /System/Library/LaunchAgents/com.apple.akd.plist # Auth Kit Framework (iCloud / AppleID related)
#/System/Library/LaunchAgents/com.apple.alf.useragent.plist #application firewall
/System/Library/LaunchAgents/com.apple.AOSHeartbeat.plist
/System/Library/LaunchAgents/com.apple.AOSPushRelay.plist
/System/Library/LaunchAgents/com.apple.ap.adprivacyd.plist # ???
/System/Library/LaunchAgents/com.apple.ap.adservicesd.plist
#/System/Library/LaunchAgents/com.apple.apfsuseragent.plist
#/System/Library/LaunchAgents/com.apple.AppleGraphicsWarning.plist
/System/Library/LaunchAgents/com.apple.appleseed.seedusaged.plist
/System/Library/LaunchAgents/com.apple.appleseed.seedusaged.postinstall.plist
#/System/Library/LaunchAgents/com.apple.applespell.plist #Spelling correction
#/System/Library/LaunchAgents/com.apple.appsleepd.plist
#/System/Library/LaunchAgents/com.apple.appstoreagent.plist
# /System/Library/LaunchAgents/com.apple.appstoreupdateagent.plist
#/System/Library/LaunchAgents/com.apple.askpermissiond.plist
#/System/Library/LaunchAgents/com.apple.AskPermissionUI.plist
#/System/Library/LaunchAgents/com.apple.assertiond.plist
#/System/Library/LaunchAgents/com.apple.AssetCache.agent.plist
#/System/Library/LaunchAgents/com.apple.AssetCacheLocatorService.plist
/System/Library/LaunchAgents/com.apple.assistant_service.plist
/System/Library/LaunchAgents/com.apple.assistantd.plist # Siri
/System/Library/LaunchAgents/com.apple.AssistiveControl.plist
#/System/Library/LaunchAgents/com.apple.atsd.useragent.plist # fontd related
#/System/Library/LaunchAgents/com.apple.audio.AudioComponentRegistrar.plist
/System/Library/LaunchAgents/com.apple.avconferenced.plist #Manages communication for FaceTime Calls
#/System/Library/LaunchAgents/com.apple.backgroundtaskmanagementuiagent.plist
# /System/Library/LaunchAgents/com.apple.bird.plist # iCloud Drive | causes continuous error messages when unloaded
/System/Library/LaunchAgents/com.apple.bluetooth.PacketLogger.plist
/System/Library/LaunchAgents/com.apple.bluetoothUIServer.plist
/System/Library/LaunchAgents/com.apple.btsa.plist # Bluetooth Setup Assistant
#/System/Library/LaunchAgents/com.apple.cache_delete.plist
#/System/Library/LaunchAgents/com.apple.CalendarAgent.plist
/System/Library/LaunchAgents/com.apple.CallHistoryPluginHelper.plist
/System/Library/LaunchAgents/com.apple.CallHistorySyncHelper.plist
#/System/Library/LaunchAgents/com.apple.cdpd.plist # Keychain related
#/System/Library/LaunchAgents/com.apple.cfnetwork.AuthBrokerAgent.plist
#/System/Library/LaunchAgents/com.apple.cfprefsd.xpc.agent.plist
/System/Library/LaunchAgents/com.apple.cloudd.plist
/System/Library/LaunchAgents/com.apple.cloudpaird.plist
/System/Library/LaunchAgents/com.apple.cloudphotosd.plist
#/System/Library/LaunchAgents/com.apple.cmfsyncagent.plist
#/System/Library/LaunchAgents/com.apple.colorsync.useragent.plist
/System/Library/LaunchAgents/com.apple.CommCenter-osx.plist # IP Telephony
#/System/Library/LaunchAgents/com.apple.commerce.plist # app store related
/System/Library/LaunchAgents/com.apple.contacts.donation-agent.plist
/System/Library/LaunchAgents/com.apple.ContactsAgent.plist
#/System/Library/LaunchAgents/com.apple.ContainerRepairAgent.plist
#/System/Library/LaunchAgents/com.apple.controlstrip.plist
#/System/Library/LaunchAgents/com.apple.CoreAuthentication.agent.plist
#/System/Library/LaunchAgents/com.apple.CoreLocationAgent.plist
/System/Library/LaunchAgents/com.apple.coreparsec.silhouette.plist
#/System/Library/LaunchAgents/com.apple.CoreRAIDAgent.plist
#/System/Library/LaunchAgents/com.apple.coreservices.lsactivity.plist
#/System/Library/LaunchAgents/com.apple.coreservices.sharedfilelistd.plist
#/System/Library/LaunchAgents/com.apple.coreservices.UASharedPasteboardProgressUI.plist
#/System/Library/LaunchAgents/com.apple.coreservices.uiagent.plist
#/System/Library/LaunchAgents/com.apple.corespeechd.plist
#/System/Library/LaunchAgents/com.apple.corespotlightd.plist
#/System/Library/LaunchAgents/com.apple.corespotlightservice.plist
#/System/Library/LaunchAgents/com.apple.CryptoTokenKit.ahp.agent.plist
#/System/Library/LaunchAgents/com.apple.csuseragent.plist
#/System/Library/LaunchAgents/com.apple.ctkbind.plist # man ctkbind: is a SmartCard paring tool that associates a user with a SmartCard public key.
#/System/Library/LaunchAgents/com.apple.ctkd.plist # Crypto Token Kit
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3425AMD_i386.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3425AMD_i386_1.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3425AMD_x86_64.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3425AMD_x86_64_1.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3600_i386.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3600_i386_1.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3600_x86_64.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent3600_x86_64_1.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent_i386.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent_i386_1.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent_x86_64.plist
#/System/Library/LaunchAgents/com.apple.cvmsCompAgent_x86_64_1.plist
#/System/Library/LaunchAgents/com.apple.DataDetectorsLocalSources.plist
#/System/Library/LaunchAgents/com.apple.DiagnosticReportCleanup.plist
#/System/Library/LaunchAgents/com.apple.diagnostics_agent.plist
/System/Library/LaunchAgents/com.apple.DictationIM.plist # man DictationIM: Implements system-wide Dictation and command & control
#/System/Library/LaunchAgents/com.apple.DiskArbitrationAgent.plist #https://www.manpagez.com/man/8/diskarbitrationd/
#/System/Library/LaunchAgents/com.apple.diskspaced.plist
#/System/Library/LaunchAgents/com.apple.distnoted.xpc.agent.plist
/System/Library/LaunchAgents/com.apple.dmd.agent.plist # Mobile / notifyd related
#/System/Library/LaunchAgents/com.apple.Dock.plist
#/System/Library/LaunchAgents/com.apple.dt.CommandLineTools.installondemand.plist
#/System/Library/LaunchAgents/com.apple.DwellControl.plist #Universal Access related
/System/Library/LaunchAgents/com.apple.eospreflightagent.plist # man eospreflightagent: is a system agent that opportunistically preflights iBridge software in the background to ensure a preflighted bundle exists for boot-time healing.
#/System/Library/LaunchAgents/com.apple.EscrowSecurityAlert.plist
/System/Library/LaunchAgents/com.apple.familycircled.plist
/System/Library/LaunchAgents/com.apple.familycontrols.useragent.plist
/System/Library/LaunchAgents/com.apple.familynotificationd.plist
#/System/Library/LaunchAgents/com.apple.FileProvider.plist
#/System/Library/LaunchAgents/com.apple.FilesystemUI.plist
#/System/Library/LaunchAgents/com.apple.Finder.plist
/System/Library/LaunchAgents/com.apple.findmymacmessenger.plist
#/System/Library/LaunchAgents/com.apple.FolderActionsDispatcher.plist
/System/Library/LaunchAgents/com.apple.followupd.plist
/System/Library/LaunchAgents/com.apple.FollowUpUI.plist
#/System/Library/LaunchAgents/com.apple.fontd.useragent.plist
#/System/Library/LaunchAgents/com.apple.FontRegistryUIAgent.plist
#/System/Library/LaunchAgents/com.apple.FontValidator.plist
#/System/Library/LaunchAgents/com.apple.FontValidatorConduit.plist
#/System/Library/LaunchAgents/com.apple.FontWorker.plist
/System/Library/LaunchAgents/com.apple.gamed.plist
/System/Library/LaunchAgents/com.apple.helpd.plist
# /System/Library/LaunchAgents/com.apple.homed.plist # man homed: is a daemon that manages home state and controls HomeKit accessories.
#/System/Library/LaunchAgents/com.apple.icdd.plist #Image Capture Discovery Daemon (For scanners and cameras)
/System/Library/LaunchAgents/com.apple.icloud.findmydeviced.findmydevice-user-agent.plist
/System/Library/LaunchAgents/com.apple.icloud.fmfd.plist
/System/Library/LaunchAgents/com.apple.iCloudUserNotifications.plist
#/System/Library/LaunchAgents/com.apple.iconservices.iconservicesagent.plist
/System/Library/LaunchAgents/com.apple.identityservicesd.plist # Handles logins for iCloud / iMessage
/System/Library/LaunchAgents/com.apple.idsremoteurlconnectionagent.plist # ios remote connection related
/System/Library/LaunchAgents/com.apple.imagent.plist # Face Time Invitation Listener
#/System/Library/LaunchAgents/com.apple.imautomatichistorydeletionagent.plist
#/System/Library/LaunchAgents/com.apple.imklaunchagent.plist
#/System/Library/LaunchAgents/com.apple.imtransferagent.plist
#/System/Library/LaunchAgents/com.apple.installandsetup.migrationhelper.user.plist
#/System/Library/LaunchAgents/com.apple.installd.user.plist
#/System/Library/LaunchAgents/com.apple.installerauthagent.plist
#/System/Library/LaunchAgents/com.apple.isst.plist # -> /System/Library/CoreServices/Menu Extras/TextInput.menu/Contents/SharedSupport/isst
#/System/Library/LaunchAgents/com.apple.iTunesHelper.launcher.plist
/System/Library/LaunchAgents/com.apple.java.InstallOnDemand.plist
#/System/Library/LaunchAgents/com.apple.keyboardservicesd.plist
/System/Library/LaunchAgents/com.apple.knowledge-agent.plist
#/System/Library/LaunchAgents/com.apple.languageassetd.plist
/System/Library/LaunchAgents/com.apple.lateragent.plist # System Update Reminder
#/System/Library/LaunchAgents/com.apple.LocalAuthentication.UIAgent.plist
#/System/Library/LaunchAgents/com.apple.locationmenu.plist
#/System/Library/LaunchAgents/com.apple.loginwindow.LWWeeklyMessageTracer.plist
#/System/Library/LaunchAgents/com.apple.lsd.plist
/System/Library/LaunchAgents/com.apple.macos.studentd.plist
# /System/Library/LaunchAgents/com.apple.ManagedClientAgent.agent.plist
/System/Library/LaunchAgents/com.apple.ManagedClientAgent.enrollagent.plist
/System/Library/LaunchAgents/com.apple.Maps.pushdaemon.plist
#/System/Library/LaunchAgents/com.apple.mbbackgrounduseragent.plist # man mbbackgrounduseragent:used by the Setup Assistant application and runs as the target user in order to configure that user from a background agents or non-Aqua session agents.
#/System/Library/LaunchAgents/com.apple.mbfloagent.plist # man mbfloagent: is used by the Setup Assistant application and run First Login Optimization plug-ins as the target user.
#/System/Library/LaunchAgents/com.apple.mbuseragent.plist # man mbuseragent: is used by the Setup Assistant application and runs as the target user in order to configure that user.
# /System/Library/LaunchAgents/com.apple.mdmclient.agent.plist # man mdmclient: Used internally for communication with Mobile Device Management (Profile Manager) server. Receives configuration profiles and commands from the server after a user binds to the server by installing a binding profile. Part of Managed Client (MCX).
#/System/Library/LaunchAgents/com.apple.mdworker.32bit.plist # Spotlight
#/System/Library/LaunchAgents/com.apple.mdworker.bundles.plist # Spotlight
#/System/Library/LaunchAgents/com.apple.mdworker.mail.plist # Spotlight
#/System/Library/LaunchAgents/com.apple.mdworker.shared.plist # Spotlight
#/System/Library/LaunchAgents/com.apple.mdworker.single.plist # Spotlight
#/System/Library/LaunchAgents/com.apple.mdworker.sizing.plist # Spotlight
/System/Library/LaunchAgents/com.apple.mediaanalysisd.plist # (i)Photo analysis
#/System/Library/LaunchAgents/com.apple.mediaremoteagent.plist #iTunes related (hangs if unloaded)
#/System/Library/LaunchAgents/com.apple.metadata.mdbulkimport.plist
#/System/Library/LaunchAgents/com.apple.metadata.mdflagwriter.plist
#/System/Library/LaunchAgents/com.apple.metadata.mdwrite.plist
#/System/Library/LaunchAgents/com.apple.midiserver.plist
/System/Library/LaunchAgents/com.apple.MobileAccessoryUpdater.fudHelperAgent.plist
/System/Library/LaunchAgents/com.apple.mobiledeviceupdater.plist
/System/Library/LaunchAgents/com.apple.MRTa.plist # Apple Malware Removal Tool / YaraScanService
/System/Library/LaunchAgents/com.apple.navd.plist
#/System/Library/LaunchAgents/com.apple.neagent.plist # man neagent: is part of the Network Extension framework
#/System/Library/LaunchAgents/com.apple.netauth.user.auth.plist
#/System/Library/LaunchAgents/com.apple.netauth.user.gui.plist
#/System/Library/LaunchAgents/com.apple.networkserviceproxy-osx.plist
/System/Library/LaunchAgents/com.apple.noticeboard.agent.plist
# /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
/System/Library/LaunchAgents/com.apple.NowPlayingTouchUI.plist
#/System/Library/LaunchAgents/com.apple.nsurlsessiond.plist
#/System/Library/LaunchAgents/com.apple.nsurlstoraged.plist
#/System/Library/LaunchAgents/com.apple.NVMeAgent.plist #man NVMeAgent: allows the system to to present notifications related to NVMe devices.
#/System/Library/LaunchAgents/com.apple.OSDUIHelper.plist #man OSDUIHelper: UI Helper inside OSDFramework responsible for drawing on screen graphics such as volume/brightness up/down
#/System/Library/LaunchAgents/com.apple.PackageKit.InstallStatus.plist
/System/Library/LaunchAgents/com.apple.parentalcontrols.check.plist
/System/Library/LaunchAgents/com.apple.parsec-fbf.plist
/System/Library/LaunchAgents/com.apple.parsecd.plist # man parsecd: manages access and data for Siri Suggestions.
/System/Library/LaunchAgents/com.apple.passd.plist
#/System/Library/LaunchAgents/com.apple.pboard.plist # Pasteboard Server
#/System/Library/LaunchAgents/com.apple.pbs.plist
#/System/Library/LaunchAgents/com.apple.PCIESlotCheck.plist
/System/Library/LaunchAgents/com.apple.personad.plist
/System/Library/LaunchAgents/com.apple.photoanalysisd.plist
/System/Library/LaunchAgents/com.apple.photolibraryd.plist
/System/Library/LaunchAgents/com.apple.PhotoLibraryMigrationUtility.XPC.plist
#/System/Library/LaunchAgents/com.apple.pictd.plist # Cocoa Helper Tool
#/System/Library/LaunchAgents/com.apple.PIPAgent.plist
#/System/Library/LaunchAgents/com.apple.pluginkit.pkd.plist
#/System/Library/LaunchAgents/com.apple.pluginkit.pkreporter.plist
/System/Library/LaunchAgents/com.apple.powerchime.plist
#/System/Library/LaunchAgents/com.apple.preference.displays.MirrorDisplays.plist
#/System/Library/LaunchAgents/com.apple.printtool.agent.plist
#/System/Library/LaunchAgents/com.apple.printuitool.agent.plist
#/System/Library/LaunchAgents/com.apple.progressd.plist
/System/Library/LaunchAgents/com.apple.protectedcloudstorage.protectedcloudkeysyncing.plist
#/System/Library/LaunchAgents/com.apple.PubSub.Agent.plist # RSS related
#/System/Library/LaunchAgents/com.apple.quicklook.32bit.plist
#/System/Library/LaunchAgents/com.apple.quicklook.plist
#/System/Library/LaunchAgents/com.apple.quicklook.ThumbnailsAgent.plist
#/System/Library/LaunchAgents/com.apple.quicklook.ui.helper.plist
/System/Library/LaunchAgents/com.apple.rapportd-user.plist
/System/Library/LaunchAgents/com.apple.RapportUIAgent.plist
# /System/Library/LaunchAgents/com.apple.rcd.plist # Remote Control Daemon (disabling breaks Media Keys)
/System/Library/LaunchAgents/com.apple.recentsd.plist # https://www.manpagez.com/man/8/recentsd/
/System/Library/LaunchAgents/com.apple.RemoteDesktop.plist
/System/Library/LaunchAgents/com.apple.ReportCrash.plist
#/System/Library/LaunchAgents/com.apple.ReportCrash.Self.plist
#/System/Library/LaunchAgents/com.apple.ReportGPURestart.plist
#/System/Library/LaunchAgents/com.apple.ReportPanic.plist
#/System/Library/LaunchAgents/com.apple.reversetemplated.plist
#/System/Library/LaunchAgents/com.apple.routined.plist
/System/Library/LaunchAgents/com.apple.Safari.SafeBrowsing.Service.plist
/System/Library/LaunchAgents/com.apple.SafariBookmarksSyncAgent.plist
/System/Library/LaunchAgents/com.apple.SafariCloudHistoryPushAgent.plist
/System/Library/LaunchAgents/com.apple.safaridavclient.plist
/System/Library/LaunchAgents/com.apple.SafariHistoryServiceAgent.plist
/System/Library/LaunchAgents/com.apple.SafariLaunchAgent.plist
/System/Library/LaunchAgents/com.apple.SafariNotificationAgent.plist
/System/Library/LaunchAgents/com.apple.SafariPlugInUpdateNotifier.plist
#/System/Library/LaunchAgents/com.apple.SafeEjectGPUAgent.plist
# /System/Library/LaunchAgents/com.apple.scopedbookmarkagent.xpc.plist # man ScopedBookmarkAgent: provides agent services for creating and resolving security scoped bookmarks. It is not meant to be invoked directly.
#/System/Library/LaunchAgents/com.apple.screencaptureui.plist
#/System/Library/LaunchAgents/com.apple.ScreenReaderUIServer.plist
#/System/Library/LaunchAgents/com.apple.screensharing.agent.plist
#/System/Library/LaunchAgents/com.apple.screensharing.menuextra.plist
#/System/Library/LaunchAgents/com.apple.screensharing.MessagesAgent.plist
#/System/Library/LaunchAgents/com.apple.ScriptMenuApp.plist
#/System/Library/LaunchAgents/com.apple.scrod.plist # Screen Reader
#/System/Library/LaunchAgents/com.apple.secd.plist
#/System/Library/LaunchAgents/com.apple.secinitd.plist
#/System/Library/LaunchAgents/com.apple.security.agent.plist
#/System/Library/LaunchAgents/com.apple.security.cloudkeychainproxy3.plist
#/System/Library/LaunchAgents/com.apple.security.DiskUnmountWatcher.plist
#/System/Library/LaunchAgents/com.apple.security.keychain-circle-notification.plist
#/System/Library/LaunchAgents/com.apple.securityuploadd.plist
#/System/Library/LaunchAgents/com.apple.ServicesUIAgent.plist
# /System/Library/LaunchAgents/com.apple.sharingd.plist # Sharing Daemon that enables AirDrop, Handoff, Instant Hotspot, Shared Computers, and Remote Disc in the Finder. https://www.manpagez.com/man/8/sharingd/
/System/Library/LaunchAgents/com.apple.sidecar-relay.plist # Remote Device / Display
/System/Library/LaunchAgents/com.apple.Siri.agent.plist
/System/Library/LaunchAgents/com.apple.siriknowledged.plist
/System/Library/LaunchAgents/com.apple.soagent.plist #social something something
/System/Library/LaunchAgents/com.apple.SocialPushAgent.plist
/System/Library/LaunchAgents/com.apple.softwareupdate_notify_agent.plist
/System/Library/LaunchAgents/com.apple.SoftwareUpdateNotificationManager.plist
#/System/Library/LaunchAgents/com.apple.speech.speechdatainstallerd.plist
#/System/Library/LaunchAgents/com.apple.speech.speechsynthesisd.plist
#/System/Library/LaunchAgents/com.apple.speech.synthesisserver.plist
#/System/Library/LaunchAgents/com.apple.spindump_agent.plist
#/System/Library/LaunchAgents/com.apple.Spotlight.plist
#/System/Library/LaunchAgents/com.apple.SSInvitationAgent.plist #ScreenSharing Invitation Agent
#/System/Library/LaunchAgents/com.apple.StorageManagementUIHelper.plist
#/System/Library/LaunchAgents/com.apple.storeaccountd.plist
#/System/Library/LaunchAgents/com.apple.storeassetd.plist
#/System/Library/LaunchAgents/com.apple.storedownloadd.plist
#/System/Library/LaunchAgents/com.apple.storeinstallagent.plist
#/System/Library/LaunchAgents/com.apple.storelegacy.plist
#/System/Library/LaunchAgents/com.apple.storeuid.plist
/System/Library/LaunchAgents/com.apple.suggestd.plist #Seems related to finding contacts in emails
/System/Library/LaunchAgents/com.apple.swcd.plist #Shared Web Credentials (Safari related)
#/System/Library/LaunchAgents/com.apple.syncdefaultsd.plist # man syncdefaultsd
#/System/Library/LaunchAgents/com.apple.syncservices.SyncServer.plist
#/System/Library/LaunchAgents/com.apple.syncservices.uihandler.plist
#/System/Library/LaunchAgents/com.apple.sysdiagnose_agent.plist
#/System/Library/LaunchAgents/com.apple.systemprofiler.plist
#/System/Library/LaunchAgents/com.apple.SystemUIServer.plist
#/System/Library/LaunchAgents/com.apple.talagent.plist
#/System/Library/LaunchAgents/com.apple.tccd.plist
/System/Library/LaunchAgents/com.apple.telephonyutilities.callservicesd.plist
#/System/Library/LaunchAgents/com.apple.thermaltrap.plist
#/System/Library/LaunchAgents/com.apple.tiswitcher.plist # Text Input Switcher
#/System/Library/LaunchAgents/com.apple.TMHelperAgent.plist
#/System/Library/LaunchAgents/com.apple.TMHelperAgent.SetupOffer.plist
/System/Library/LaunchAgents/com.apple.touristd.plist
#/System/Library/LaunchAgents/com.apple.trustd.agent.plist
#/System/Library/LaunchAgents/com.apple.TrustEvaluationAgent.plist
#/System/Library/LaunchAgents/com.apple.uikitsystemapp.plist
#/System/Library/LaunchAgents/com.apple.universalaccessAuthWarn.plist
#/System/Library/LaunchAgents/com.apple.universalaccesscontrol.plist
#/System/Library/LaunchAgents/com.apple.universalaccessd.plist
#/System/Library/LaunchAgents/com.apple.universalaccessHUD.plist
#/System/Library/LaunchAgents/com.apple.unmountassistant.useragent.plist
/System/Library/LaunchAgents/com.apple.UsageTrackingAgent.plist # https://www.unix.com/man-page/mojave/8/UsageTrackingAgent/
#/System/Library/LaunchAgents/com.apple.USBAgent.plist
#/System/Library/LaunchAgents/com.apple.UserEventAgent-Aqua.plist
#/System/Library/LaunchAgents/com.apple.UserEventAgent-LoginWindow.plist
#/System/Library/LaunchAgents/com.apple.usernoted.plist
#/System/Library/LaunchAgents/com.apple.UserNotificationCenterAgent-LoginWindow.plist
#/System/Library/LaunchAgents/com.apple.UserNotificationCenterAgent.plist # Handles User Interactions incl. Permission Dialogs
/System/Library/LaunchAgents/com.apple.videosubscriptionsd.plist
#/System/Library/LaunchAgents/com.apple.voicememod.plist
/System/Library/LaunchAgents/com.apple.VoiceOver.plist
#/System/Library/LaunchAgents/com.apple.warmd_agent.plist
#/System/Library/LaunchAgents/com.apple.webinspectord.plist
#/System/Library/LaunchAgents/com.apple.WebKit.PluginAgent.plist
#/System/Library/LaunchAgents/com.apple.wifi.WiFiAgent.plist
#/System/Library/LaunchAgents/com.apple.WiFiVelocityAgent.plist
#/System/Library/LaunchAgents/com.apple.xpc.loginitemregisterd.plist
#/System/Library/LaunchAgents/com.apple.xpc.otherbsd.plist
)
LaunchDaemons=(
#/System/Library/LaunchDaemons/com.openssh.ssh-agent.plist
#/System/Library/LaunchDaemons/bootps.plist
/System/Library/LaunchDaemons/com.apple.accessoryd.plist
/System/Library/LaunchDaemons/com.apple.adid.plist # iTunes related
#/System/Library/LaunchDaemons/com.apple.afpfs_afpLoad.plist
#/System/Library/LaunchDaemons/com.apple.afpfs_checkafp.plist
# /System/Library/LaunchDaemons/com.apple.AirPlayXPCHelper.plist
#/System/Library/LaunchDaemons/com.apple.airport.wps.plist
#/System/Library/LaunchDaemons/com.apple.airportd.plist
#/System/Library/LaunchDaemons/com.apple.akd.plist # Auth Kit Framework
#/System/Library/LaunchDaemons/com.apple.alf.agent.plist # Firewall
/System/Library/LaunchDaemons/com.apple.analyticsd.plist
#/System/Library/LaunchDaemons/com.apple.apfsd.plist
#/System/Library/LaunchDaemons/com.apple.AppleFileServer.plist
#/System/Library/LaunchDaemons/com.apple.applefileutil.plist
#/System/Library/LaunchDaemons/com.apple.AppleQEMUGuestAgent.plist
/System/Library/LaunchDaemons/com.apple.appleseed.fbahelperd.plist # Feedback Assistant
# /System/Library/LaunchDaemons/com.apple.applessdstatistics.plist # man applessdstatistics: is a daemon which gathers statistics related to the internal storage device.
/System/Library/LaunchDaemons/com.apple.apsd.plist #Apple Push Notification Service
#/System/Library/LaunchDaemons/com.apple.aslmanager.plist #man aslmanager: manages rotated files and ASL data written by the syslogd server
#/System/Library/LaunchDaemons/com.apple.AssetCache.builtin.plist
#/System/Library/LaunchDaemons/com.apple.AssetCacheLocatorService.plist
#/System/Library/LaunchDaemons/com.apple.AssetCacheManagerService.plist
#/System/Library/LaunchDaemons/com.apple.AssetCacheTetheratorService.plist
#/System/Library/LaunchDaemons/com.apple.atrun.plist # man atrun: runs commands queued by at(1). It is invoked periodically by launchd(8) as specified in the com.apple.atrun.plist property list. By default the property list contains the Disabled key set to true, so atrun is never invoked.
#/System/Library/LaunchDaemons/com.apple.audio.AudioComponentRegistrar.daemon.plist
#/System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist
#/System/Library/LaunchDaemons/com.apple.audio.systemsoundserverd.plist
#/System/Library/LaunchDaemons/com.apple.auditd.plist
#/System/Library/LaunchDaemons/com.apple.autofsd.plist
#/System/Library/LaunchDaemons/com.apple.automountd.plist
#/System/Library/LaunchDaemons/com.apple.avbdeviced.plist # Audio / Video Bridging
/System/Library/LaunchDaemons/com.apple.awacsd.plist #Apple Wide Area Connectivity Service daemon - Back to My Mac Feature
/System/Library/LaunchDaemons/com.apple.awdd.plist # system daemon that collects diagnostics and usage data locally for users that have opted in.
#/System/Library/LaunchDaemons/com.apple.backupd-helper.plist
#/System/Library/LaunchDaemons/com.apple.backupd.plist
/System/Library/LaunchDaemons/com.apple.biokitaggdd.plist
/System/Library/LaunchDaemons/com.apple.biometrickitd.plist
/System/Library/LaunchDaemons/com.apple.bluetoothaudiod.plist
/System/Library/LaunchDaemons/com.apple.bluetoothd.plist
/System/Library/LaunchDaemons/com.apple.bluetoothReporter.plist
/System/Library/LaunchDaemons/com.apple.bnepd.plist # man bnepd: The Bluetooth network daemon handles all BNEP connections on the system.
#/System/Library/LaunchDaemons/com.apple.bootinstalld.plist
#/System/Library/LaunchDaemons/com.apple.bosreporter.plist
#/System/Library/LaunchDaemons/com.apple.boswatcher.plist
#/System/Library/LaunchDaemons/com.apple.bridgeOSUpdateProxy.plist
#/System/Library/LaunchDaemons/com.apple.bsd.dirhelper.plist
#/System/Library/LaunchDaemons/com.apple.captiveagent.plist # Captive Wifi Portal Agent
#/System/Library/LaunchDaemons/com.apple.cfnetwork.cfnetworkagent.plist
#/System/Library/LaunchDaemons/com.apple.cfprefsd.xpc.daemon.plist
#/System/Library/LaunchDaemons/com.apple.cmio.AppleCameraAssistant.plist
#/System/Library/LaunchDaemons/com.apple.cmio.AVCAssistant.plist
#/System/Library/LaunchDaemons/com.apple.cmio.IIDCVideoAssistant.plist
/System/Library/LaunchDaemons/com.apple.cmio.iOSScreenCaptureAssistant.plist
#/System/Library/LaunchDaemons/com.apple.cmio.VDCAssistant.plist # man: The process allows multiple applications to simultaneously capture from the same camera.
#/System/Library/LaunchDaemons/com.apple.colorsync.displayservices.plist
#/System/Library/LaunchDaemons/com.apple.colorsyncd.plist
/System/Library/LaunchDaemons/com.apple.CommCenterRootHelper.plist
#/System/Library/LaunchDaemons/com.apple.commerced.plist # app store related
/System/Library/LaunchDaemons/com.apple.comsat.plist #server process which receives reports of incoming mail and notifies users if they have requested this service.
#/System/Library/LaunchDaemons/com.apple.configd.plist
#/System/Library/LaunchDaemons/com.apple.configureLocalKDC.plist
#/System/Library/LaunchDaemons/com.apple.contextstored.plist
#/System/Library/LaunchDaemons/com.apple.CoreAuthentication.daemon.plist
#/System/Library/LaunchDaemons/com.apple.corebrightnessd.plist
#/System/Library/LaunchDaemons/com.apple.corecaptured.plist
#/System/Library/LaunchDaemons/com.apple.coreduetd.osx.plist
#/System/Library/LaunchDaemons/com.apple.CoreRAID.plist
#/System/Library/LaunchDaemons/com.apple.coreservices.appleevents.plist
#/System/Library/LaunchDaemons/com.apple.coreservices.launchservicesd.plist
#/System/Library/LaunchDaemons/com.apple.coreservices.sharedfilelistd.plist
#/System/Library/LaunchDaemons/com.apple.coreservicesd.plist
#/System/Library/LaunchDaemons/com.apple.corestorage.corestoraged.plist
#/System/Library/LaunchDaemons/com.apple.corestorage.corestoragehelperd.plist
#/System/Library/LaunchDaemons/com.apple.coresymbolicationd.plist # man coresymbolicationd: manages the system cache of symbol information for OS libraries
/System/Library/LaunchDaemons/com.apple.CrashReporterSupportHelper.plist
#/System/Library/LaunchDaemons/com.apple.CryptoTokenKit.ahp.plist
#/System/Library/LaunchDaemons/com.apple.CSCSupportd.plist
#/System/Library/LaunchDaemons/com.apple.csrutil.report.plist
/System/Library/LaunchDaemons/com.apple.ctkd.plist # man ctkd: ensures loading of SmartCard token driver, maintains SmartCard token sessions, provides SmartCard integration into the system.
#/System/Library/LaunchDaemons/com.apple.cvmsServ.plist # man CVMServer: is a system daemon that handles generic task execution in a slave process.
#/System/Library/LaunchDaemons/com.apple.dasd-OSX.plist # man dasd: Daemon for background activity scheduling.
#/System/Library/LaunchDaemons/com.apple.DataDetectorsSourceAccess.plist
#/System/Library/LaunchDaemons/com.apple.defragx.plist
#/System/Library/LaunchDaemons/com.apple.DesktopServicesHelper.plist
#/System/Library/LaunchDaemons/com.apple.diagnosticd.plist # https://eclecticlight.co/2017/10/10/inside-the-macos-log-logd-and-the-files-that-it-manages/
# /System/Library/LaunchDaemons/com.apple.diagnosticextensions.osx.bluetooth.helper.plist
# /System/Library/LaunchDaemons/com.apple.diagnosticextensions.osx.getmobilityinfo.helper.plist
# /System/Library/LaunchDaemons/com.apple.diagnosticextensions.osx.spotlight.helper.plist
# /System/Library/LaunchDaemons/com.apple.diagnosticextensions.osx.timemachine.helper.plist
# /System/Library/LaunchDaemons/com.apple.diagnosticextensions.osx.wifi.helper.plist
#/System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist
#/System/Library/LaunchDaemons/com.apple.diskmanagementd.plist
#/System/Library/LaunchDaemons/com.apple.diskmanagementstartup.plist
#/System/Library/LaunchDaemons/com.apple.displaypolicyd.plist
#/System/Library/LaunchDaemons/com.apple.distnoted.xpc.daemon.plist
/System/Library/LaunchDaemons/com.apple.dmd.daemon.plist # iCloud related
#/System/Library/LaunchDaemons/com.apple.dnsextd.plist
#/System/Library/LaunchDaemons/com.apple.dpaudiothru.plist
#/System/Library/LaunchDaemons/com.apple.dpd.plist # man dpd: is a daemon intended to listen for Command + F2 on the iMac to switch to external display input mode upon display port hot-plug
# /System/Library/LaunchDaemons/com.apple.dprivacyd.plist
#/System/Library/LaunchDaemons/com.apple.driver.eficheck.plist
#/System/Library/LaunchDaemons/com.apple.driver.ethcheck.plist
#/System/Library/LaunchDaemons/com.apple.dspluginhelperd.plist
#/System/Library/LaunchDaemons/com.apple.DumpGPURestart.plist
#/System/Library/LaunchDaemons/com.apple.DumpPanic.plist
#/System/Library/LaunchDaemons/com.apple.dvdplayback.setregion.plist
#/System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
#/System/Library/LaunchDaemons/com.apple.eapolcfg_auth.plist
#/System/Library/LaunchDaemons/com.apple.efilogin-helper.plist
#/System/Library/LaunchDaemons/com.apple.emlog.plist
#/System/Library/LaunchDaemons/com.apple.emond.aslmanager.plist
#/System/Library/LaunchDaemons/com.apple.emond.plist
#/System/Library/LaunchDaemons/com.apple.eoshostd.plist
/System/Library/LaunchDaemons/com.apple.eppc.plist # man AEServer: System-wide daemon which recevies incoming (remote) AppleEvents
/System/Library/LaunchDaemons/com.apple.familycontrols.plist
#/System/Library/LaunchDaemons/com.apple.FileCoordination.plist
/System/Library/LaunchDaemons/com.apple.findmymac.plist
/System/Library/LaunchDaemons/com.apple.findmymacmessenger.plist
#/System/Library/LaunchDaemons/com.apple.firmwaresyncd.plist
#/System/Library/LaunchDaemons/com.apple.fontd.plist
#/System/Library/LaunchDaemons/com.apple.fontmover.plist
#/System/Library/LaunchDaemons/com.apple.FontWorker.plist
# /System/Library/LaunchDaemons/com.apple.fpsd.plist # iTunes related
#/System/Library/LaunchDaemons/com.apple.fseventsd.plist
#/System/Library/LaunchDaemons/com.apple.ftp-proxy.plist
#/System/Library/LaunchDaemons/com.apple.GameController.gamecontrollerd.plist
#/System/Library/LaunchDaemons/com.apple.getty.plist
#/System/Library/LaunchDaemons/com.apple.gkreport.plist
#/System/Library/LaunchDaemons/com.apple.GSSCred.plist
#/System/Library/LaunchDaemons/com.apple.gssd.plist
#/System/Library/LaunchDaemons/com.apple.hdiejectd.plist
#/System/Library/LaunchDaemons/com.apple.hidd.plist
/System/Library/LaunchDaemons/com.apple.icloud.findmydeviced.plist
#/System/Library/LaunchDaemons/com.apple.iconservices.iconservicesagent.plist
#/System/Library/LaunchDaemons/com.apple.iconservices.iconservicesd.plist
#/System/Library/LaunchDaemons/com.apple.IFCStart.plist
#/System/Library/LaunchDaemons/com.apple.ifdreader.plist
#/System/Library/LaunchDaemons/com.apple.installandsetup.systemmigrationd.plist
#/System/Library/LaunchDaemons/com.apple.installd.plist
#/System/Library/LaunchDaemons/com.apple.InstallerDiagnostics.installerdiagd.plist
#/System/Library/LaunchDaemons/com.apple.InstallerDiagnostics.installerdiagwatcher.plist
#/System/Library/LaunchDaemons/com.apple.InstallerProgress.plist
#/System/Library/LaunchDaemons/com.apple.IOAccelMemoryInfoCollector.plist
#/System/Library/LaunchDaemons/com.apple.IOBluetoothUSBDFU.plist
#/System/Library/LaunchDaemons/com.apple.ionodecache.plist
#/System/Library/LaunchDaemons/com.apple.jetsamproperties.Mac.plist
#/System/Library/LaunchDaemons/com.apple.kcproxy.plist
#/System/Library/LaunchDaemons/com.apple.kdumpd.plist
#/System/Library/LaunchDaemons/com.apple.Kerberos.digest-service.plist
#/System/Library/LaunchDaemons/com.apple.Kerberos.kadmind.plist
#/System/Library/LaunchDaemons/com.apple.Kerberos.kcm.plist
#/System/Library/LaunchDaemons/com.apple.Kerberos.kdc.plist
#/System/Library/LaunchDaemons/com.apple.Kerberos.kpasswdd.plist
#/System/Library/LaunchDaemons/com.apple.KernelEventAgent.plist
#/System/Library/LaunchDaemons/com.apple.kextd.plist
#/System/Library/LaunchDaemons/com.apple.kuncd.plist
#/System/Library/LaunchDaemons/com.apple.locate.plist
# /System/Library/LaunchDaemons/com.apple.locationd.plist
#/System/Library/LaunchDaemons/com.apple.lockd.plist
#/System/Library/LaunchDaemons/com.apple.logd.plist
#/System/Library/LaunchDaemons/com.apple.logind.plist
#/System/Library/LaunchDaemons/com.apple.loginwindow.plist
#/System/Library/LaunchDaemons/com.apple.logkextloadsd.plist
#/System/Library/LaunchDaemons/com.apple.lsd.plist
/System/Library/LaunchDaemons/com.apple.ManagedClient.cloudconfigurationd.plist
/System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist
/System/Library/LaunchDaemons/com.apple.ManagedClient.plist
/System/Library/LaunchDaemons/com.apple.ManagedClient.startup.plist
#/System/Library/LaunchDaemons/com.apple.mbsystemadministration.plist
#/System/Library/LaunchDaemons/com.apple.mbusertrampoline.plist
#/System/Library/LaunchDaemons/com.apple.mdmclient.daemon.plist
#/System/Library/LaunchDaemons/com.apple.mdmclient.daemon.runatboot.plist
#/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
#/System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist
#/System/Library/LaunchDaemons/com.apple.mediaremoted.plist #hangs itunes if disabled
#/System/Library/LaunchDaemons/com.apple.metadata.mds.index.plist
#/System/Library/LaunchDaemons/com.apple.metadata.mds.plist
#/System/Library/LaunchDaemons/com.apple.metadata.mds.scan.plist
#/System/Library/LaunchDaemons/com.apple.metadata.mds.spindump.plist
/System/Library/LaunchDaemons/com.apple.mobile.keybagd.plist # iOS related
#/System/Library/LaunchDaemons/com.apple.MobileAccessoryUpdater.plist
#/System/Library/LaunchDaemons/com.apple.mobileactivationd.plist
#/System/Library/LaunchDaemons/com.apple.mobileassetd.plist
#/System/Library/LaunchDaemons/com.apple.MobileFileIntegrity.plist
/System/Library/LaunchDaemons/com.apple.MRTd.plist # Apple Malware Removal Tool / YaraScanService
#/System/Library/LaunchDaemons/com.apple.msrpc.echosvc.plist
#/System/Library/LaunchDaemons/com.apple.msrpc.lsarpc.plist
#/System/Library/LaunchDaemons/com.apple.msrpc.mdssvc.plist
#/System/Library/LaunchDaemons/com.apple.msrpc.netlogon.plist
#/System/Library/LaunchDaemons/com.apple.msrpc.srvsvc.plist
#/System/Library/LaunchDaemons/com.apple.msrpc.wkssvc.plist
#/System/Library/LaunchDaemons/com.apple.multiversed.plist
#/System/Library/LaunchDaemons/com.apple.nehelper.plist https://www.manpagez.com/man/8/nehelper/
#/System/Library/LaunchDaemons/com.apple.nesessionmanager.plist
#/System/Library/LaunchDaemons/com.apple.netauth.sys.auth.plist
#/System/Library/LaunchDaemons/com.apple.netauth.sys.gui.plist
#/System/Library/LaunchDaemons/com.apple.netbiosd.plist
#/System/Library/LaunchDaemons/com.apple.NetBootClientStatus.plist
#/System/Library/LaunchDaemons/com.apple.NetworkLinkConditioner.plist
#/System/Library/LaunchDaemons/com.apple.NetworkSharing.plist
#/System/Library/LaunchDaemons/com.apple.newsyslog.plist
#/System/Library/LaunchDaemons/com.apple.nfcd.plist
#/System/Library/LaunchDaemons/com.apple.nfrestore.plist
#/System/Library/LaunchDaemons/com.apple.nfsconf.plist
#/System/Library/LaunchDaemons/com.apple.nfsd.plist
/System/Library/LaunchDaemons/com.apple.noticeboard.state.plist #NoticeBoard Framework
#/System/Library/LaunchDaemons/com.apple.notifyd.plist # https://www.manpagez.com/man/8/notifyd/
#/System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist
#/System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist
#/System/Library/LaunchDaemons/com.apple.ocspd.plist
#/System/Library/LaunchDaemons/com.apple.odproxyd.plist # https://www.manpagez.com/man/8/odproxyd/
/System/Library/LaunchDaemons/com.apple.ODSAgent.plist # Remote Disc Sharing
#/System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
/System/Library/LaunchDaemons/com.apple.osanalytics.osanalyticshelper.plist
#/System/Library/LaunchDaemons/com.apple.PasswordService.plist
#/System/Library/LaunchDaemons/com.apple.PCIELaneConfigTool.plist
#/System/Library/LaunchDaemons/com.apple.PerfPowerServices.plist
#/System/Library/LaunchDaemons/com.apple.PerfPowerServicesExtended.plist
#/System/Library/LaunchDaemons/com.apple.periodic-daily.plist
#/System/Library/LaunchDaemons/com.apple.periodic-monthly.plist
#/System/Library/LaunchDaemons/com.apple.periodic-weekly.plist
#/System/Library/LaunchDaemons/com.apple.pfctl.plist
#/System/Library/LaunchDaemons/com.apple.pfd.plist
/System/Library/LaunchDaemons/com.apple.postfix.master.plist
/System/Library/LaunchDaemons/com.apple.postfix.newaliases.plist
#/System/Library/LaunchDaemons/com.apple.powerd.plist
#/System/Library/LaunchDaemons/com.apple.powerd.swd.plist
#/System/Library/LaunchDaemons/com.apple.preferences.timezone.admintool.plist
#/System/Library/LaunchDaemons/com.apple.printtool.daemon.plist
#/System/Library/LaunchDaemons/com.apple.ProcessPanicReport.plist
#/System/Library/LaunchDaemons/com.apple.racoon.plist #VPN related
/System/Library/LaunchDaemons/com.apple.rapportd.plist # man rapportd: Daemon that enables Phone Call Handoff and other communication features between Apple devices.
/System/Library/LaunchDaemons/com.apple.RemoteDesktop.PrivilegeProxy.plist
/System/Library/LaunchDaemons/com.apple.remotemanagementd.plist
/System/Library/LaunchDaemons/com.apple.remotepairtool.plist
# /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist # man ReportCrash: analyzes crashing processes and saves a crash report to disk.
# /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.Self.plist # https://www.unix.com/man-page/osx/8/ReportCrash/
#/System/Library/LaunchDaemons/com.apple.ReportMemoryException.plist
#/System/Library/LaunchDaemons/com.apple.ReportPanicService.plist
#/System/Library/LaunchDaemons/com.apple.revisiond.plist # man revisiond: is the daemon that manages document revisions created by applications and system services.
/System/Library/LaunchDaemons/com.apple.RFBEventHelper.plist # man RFBEventHelperd: is used by the Screen Sharing app.
#/System/Library/LaunchDaemons/com.apple.rootless.init.plist # Sandbox related
#/System/Library/LaunchDaemons/com.apple.rpcbind.plist # man Rpcbind: is a server that converts RPC program numbers into DARPA protocol port numbers. It is a replacement for the older portmap program.
/System/Library/LaunchDaemons/com.apple.rtcreportingd.plist # Connects to apple (pancake.apple.com), possibly related to iTunes music sharing and/or sending crash reports
#/System/Library/LaunchDaemons/com.apple.SafeEjectGPUStartupDaemon.plist
#/System/Library/LaunchDaemons/com.apple.sandboxd.plist # man sandboxd: performs services on behalf of the Sandbox kernel extension.
#/System/Library/LaunchDaemons/com.apple.SCHelper.plist # System configuration helper
/System/Library/LaunchDaemons/com.apple.screensharing.plist
#/System/Library/LaunchDaemons/com.apple.scsid.plist # man scsid: is the daemon responsible for the SCSI subsystem preferences.
#/System/Library/LaunchDaemons/com.apple.secinitd.plist # man secinitd: is a system daemon that initializes the runtime security policies for processes.
#/System/Library/LaunchDaemons/com.apple.security.agent.login.plist
#/System/Library/LaunchDaemons/com.apple.security.authhost.plist
#/System/Library/LaunchDaemons/com.apple.security.FDERecoveryAgent.plist
#/System/Library/LaunchDaemons/com.apple.security.syspolicy.plist
#/System/Library/LaunchDaemons/com.apple.securityd.plist
#/System/Library/LaunchDaemons/com.apple.securityd_service.plist
#/System/Library/LaunchDaemons/com.apple.seld.plist # Apple Pay related | man seld: Manages the secure element and interfaces with the trusted service manager.
#/System/Library/LaunchDaemons/com.apple.sessionlogoutd.plist
/System/Library/LaunchDaemons/com.apple.signpost.signpost_reporter.plist # perfomance analysis
/System/Library/LaunchDaemons/com.apple.smb.preferences.plist
/System/Library/LaunchDaemons/com.apple.smbd.plist
#/System/Library/LaunchDaemons/com.apple.softwareupdate_download_service.plist
#/System/Library/LaunchDaemons/com.apple.softwareupdate_firstrun_tasks.plist
#/System/Library/LaunchDaemons/com.apple.softwareupdated.plist
#/System/Library/LaunchDaemons/com.apple.speech.speechsynthesisd.plist
#/System/Library/LaunchDaemons/com.apple.spindump.plist
#/System/Library/LaunchDaemons/com.apple.startupdiskhelper.plist
# /System/Library/LaunchDaemons/com.apple.statd.notify.plist # NFS stat daemon
#/System/Library/LaunchDaemons/com.apple.storagekitd.plist
#/System/Library/LaunchDaemons/com.apple.storeaccountd.daemon.plist
#/System/Library/LaunchDaemons/com.apple.storeagent.daemon.plist
#/System/Library/LaunchDaemons/com.apple.storeassetd.daemon.plist
#/System/Library/LaunchDaemons/com.apple.storedownloadd.daemon.plist
#/System/Library/LaunchDaemons/com.apple.storeinstalld.plist
#/System/Library/LaunchDaemons/com.apple.storereceiptinstaller.plist
/System/Library/LaunchDaemons/com.apple.SubmitDiagInfo.plist
#/System/Library/LaunchDaemons/com.apple.suhelperd.plist
#/System/Library/LaunchDaemons/com.apple.symptomsd.plist
#/System/Library/LaunchDaemons/com.apple.sysdiagnose.plist
#/System/Library/LaunchDaemons/com.apple.sysdiagnose_helper.plist
#/System/Library/LaunchDaemons/com.apple.syslogd.plist
#/System/Library/LaunchDaemons/com.apple.sysmond.plist
#/System/Library/LaunchDaemons/com.apple.system_installd.plist
#/System/Library/LaunchDaemons/com.apple.systemkeychain.plist
#/System/Library/LaunchDaemons/com.apple.systemstats.analysis.plist
#/System/Library/LaunchDaemons/com.apple.systemstats.daily.plist
#/System/Library/LaunchDaemons/com.apple.tailspind.plist
#/System/Library/LaunchDaemons/com.apple.taskgated-helper.plist
#/System/Library/LaunchDaemons/com.apple.taskgated.plist
#/System/Library/LaunchDaemons/com.apple.tccd.system.plist
#/System/Library/LaunchDaemons/com.apple.testmanagerd.plist
#/System/Library/LaunchDaemons/com.apple.thermald.plist # Thermal management daemon.
#/System/Library/LaunchDaemons/com.apple.timed.plist
#/System/Library/LaunchDaemons/com.apple.timezoneupdates.tzd.plist
/System/Library/LaunchDaemons/com.apple.touchbarserver.plist
#/System/Library/LaunchDaemons/com.apple.trustd.plist
#/System/Library/LaunchDaemons/com.apple.TrustEvaluationAgent.system.plist
#/System/Library/LaunchDaemons/com.apple.tzlinkd.plist
#/System/Library/LaunchDaemons/com.apple.ucupdate.plist
#/System/Library/LaunchDaemons/com.apple.uninstalld.plist
#/System/Library/LaunchDaemons/com.apple.unmountassistant.sysagent.plist
#/System/Library/LaunchDaemons/com.apple.usbd.plist
#/System/Library/LaunchDaemons/com.apple.usbmuxd.plist
#/System/Library/LaunchDaemons/com.apple.UserEventAgent-System.plist
/System/Library/LaunchDaemons/com.apple.UserNotificationCenter.plist
#/System/Library/LaunchDaemons/com.apple.uucp.plist
#/System/Library/LaunchDaemons/com.apple.var-db-dslocal-backup.plist
#/System/Library/LaunchDaemons/com.apple.vsdbutil.plist
#/System/Library/LaunchDaemons/com.apple.warmd.plist # Controls caches used during startup and login
#/System/Library/LaunchDaemons/com.apple.watchdogd.plist # man watchdogd: If the kernel or user space is stuck, a reboot will be triggered by the watchdog infrastructure.
#/System/Library/LaunchDaemons/com.apple.wifid.plist
#/System/Library/LaunchDaemons/com.apple.wifiFirmwareLoader.plist
#/System/Library/LaunchDaemons/com.apple.wifivelocityd.plist
#/System/Library/LaunchDaemons/com.apple.WindowServer.plist
#/System/Library/LaunchDaemons/com.apple.wirelessproxd.plist
#/System/Library/LaunchDaemons/com.apple.WirelessRadioManager-osx.plist
#/System/Library/LaunchDaemons/com.apple.wwand.plist
#/System/Library/LaunchDaemons/com.apple.xartstorageremoted.plist
#/System/Library/LaunchDaemons/com.apple.xpc.roleaccountd.plist
#/System/Library/LaunchDaemons/com.apple.xpc.smd.plist
#/System/Library/LaunchDaemons/com.apple.xpc.uscwoap.plist
#/System/Library/LaunchDaemons/com.apple.xsan.plist
#/System/Library/LaunchDaemons/com.apple.xsandaily.plist
#/System/Library/LaunchDaemons/com.apple.xscertadmin.plist
#/System/Library/LaunchDaemons/com.apple.xscertd-helper.plist
#/System/Library/LaunchDaemons/com.apple.xscertd.plist
#/System/Library/LaunchDaemons/com.vix.cron.plist
/System/Library/LaunchDaemons/ntalk.plist
/System/Library/LaunchDaemons/org.apache.httpd.plist
#/System/Library/LaunchDaemons/org.cups.cups-lpd.plist
#/System/Library/LaunchDaemons/org.cups.cupsd.plist
#/System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
#/System/Library/LaunchDaemons/org.openldap.slapd.plist
/System/Library/LaunchDaemons/org.postfix.master.plist
#/System/Library/LaunchDaemons/ssh.plist
#/System/Library/LaunchDaemons/tftp.plise
)
load() {
echo "loading ${@}"
if [[ ! -z $testrun ]]; then
# echo rename 's/\.bak$//' ${@}
echo launchctl load -w ${@}
echo sudo launchctl load -w ${@}
else
launchctl load -w ${@} &> /dev/null;
sudo launchctl load -w ${@} &> /dev/null;
# grep launchctl list output to check if service is really enabled
enabled=$(launchctl list | grep $(echo "${@}" | /usr/bin/sed -E 's/.*\/(.*).plist/\1/'))
enabled=$enabled$(sudo launchctl list | grep $(echo "${@}" | /usr/bin/sed -E 's/.*\/(.*).plist/\1/'))
if [[ ! -z $enabled ]]; then
echo "[OK] Service ${@} enabled"
fi
fi
}
unload() {
echo "unloading ${@}"
if [[ ! -z $testrun ]]; then
echo launchctl unload -w ${@}
echo sudo launchctl unload -w ${@}
if [[ -z $dontmove ]]; then
echo sudo mv ${@} ${@}.bak
fi
else
launchctl unload -w ${@} &> /dev/null;
sudo launchctl unload -w ${@} &> /dev/null;
if [[ -z $dontmove ]]; then
sudo mv $service $service.bak;
fi
# grep launchctl list output to check if service is really disabled
disabled=$(launchctl list | grep -q $(echo "${@}" | /usr/bin/sed -E 's/.*\/(.*).plist/\1/'))
disabled=$disabled$(sudo launchctl list | grep -q $(echo "${@}" | /usr/bin/sed -E 's/.*\/(.*).plist/\1/'))
if [[ -z $disabled ]]; then
echo "[OK] Service ${@} disabled"
fi
fi
}
clean() {
# working directory function argument #
dir=${@}
# list of all Agents/Daemons to disable based on lists above #
eval blacklist='"${'${dir}'[*]}"'
# rename all .bak files back to .plist first #
sudo rename 's/\.bak$//' /System/Library/$dir/*;
for service in /System/Library/$dir/*; do
# grep launchctl if the service is already enabled
enabled=$(launchctl list | grep $(echo "${service}" | /usr/bin/sed -E 's/.*\/(.*).plist/\1/'))
enabled=$enabled$(sudo launchctl list | grep $(echo "${service}" | /usr/bin/sed -E 's/.*\/(.*).plist/\1/'))
blacklisted="not blacklisted"
if [[ " ${blacklist} " == *" $service "* ]]; then
blacklisted="${inv}blacklisted${clr}"
fi
#print status
if [[ ! -z "$enabled" ]]; then
echo -e "loaded: $service : $blacklisted"
elif [[ -z "$enabled" ]]; then
echo -e "unloaded: $service : $blacklisted"
fi
# unload service if found in $blacklist, not found in $Protected and $restore is unset
if [[ " ${blacklist} " == *" $service "* && " ${Protected[*]} " != *" $service "* && -z $restore ]]; then
unload $service
# load service if it's not found in $blacklist or $Protected, $disableonly is unset and it's not already enabled OR restore is enabled
elif [[ " ${Protected[*]} " != *" $service "* && -z $disableonly && -z $enabled || ! -z $restore ]]; then
load $service
fi
done
}
clean LaunchAgents
clean LaunchDaemons