2 votes

Vous avez besoin de savoir quel est le contenu de /var/db/launchd.db/com.apple.launchd/overrides.plist de Mac OS X Mountain Lion ?

J'ai accidentellement lancé la commande suivante :

# launchctl load -w /System/Library/LaunchDaemons/

Je souhaite voir les sorties de mac os x mountain lion launchd% list commande. Voir ci-dessous sur la pastie des services en cours d'exécution.

Voici le résultat de la commande mistake :

# launchctl load -w /System/Library/LaunchDaemons/
bind(): Address already in use
bind(): Address already in use
bind(): Address already in use
bind(): Address already in use
com.apple.ActivityMonitor: Already loaded
com.apple.afpfs_afpLoad: Already loaded
com.apple.afpfs_checkafp: Already loaded
com.apple.AirPlayXPCHelper: Already loaded
com.apple.AirPort.wps: Already loaded
com.apple.airportd: Already loaded
com.apple.airport.updateprefs: Already loaded
com.apple.alf: Already loaded
com.apple.AOSNotification-FMM: Already loaded
com.apple.appleprofilepolicyd: Already loaded
com.apple.apsd: Already loaded
com.apple.aslmanager: Already loaded
com.apple.audio.coreaudiod: Already loaded
com.apple.auditd: Already loaded
com.apple.authorizationhost: Already loaded
com.apple.autofsd: Already loaded
com.apple.automountd: Already loaded
com.apple.avbdeviced: Already loaded
com.apple.awacsd: Already loaded
com.apple.backupd: Already loaded
com.apple.blued: Already loaded
com.apple.bnepd: Already loaded
com.apple.bsd.dirhelper: Already loaded
com.apple.bsd.launchdadd: Already loaded
com.apple.cfprefsd.xpc.daemon: Already loaded
com.apple.cmio.AVCAssistant: Already loaded
com.apple.cmio.IIDCVideoAssistant: Already loaded
com.apple.cmio.VDCAssistant: Already loaded
com.apple.configd: Already loaded
com.apple.CoreRAID: Already loaded
com.apple.coreservices.appleevents: Already loaded
com.apple.coreservices.appleid.passwordcheck: Already loaded
com.apple.coreservicesd: Already loaded
com.apple.corestorage.corestoraged: Already loaded
com.apple.corestorage.corestoragehelperd: Already loaded
com.apple.coresymbolicationd: Already loaded
com.apple.cvmsServ: Already loaded
com.apple.DiagnosticReportCleanUp: Already loaded
com.apple.diskarbitrationd: Already loaded
com.apple.diskmanagementd: Already loaded
com.apple.distnoted.xpc.daemon: Already loaded
com.apple.dpd: Already loaded
com.apple.dspluginhelperd: Already loaded
com.apple.DumpGPURestart: Already loaded
com.apple.DumpPanic: Already loaded
com.apple.dvdplayback.setregion: Already loaded
com.apple.dynamic_pager: Already loaded
com.apple.eapolcfg_auth: Already loaded
com.apple.efilogin-helper: Already loaded
com.apple.emond.aslmanager: Already loaded
com.apple.emond: Already loaded
com.apple.familycontrols: Already loaded
com.apple.FileCoordination: Already loaded
com.apple.findmymacd: Already loaded
com.apple.findmymacmessenger: Already loaded
com.apple.fontd: Already loaded
com.apple.fontmover: Already loaded
com.apple.FontWorker: Already loaded
com.apple.fseventsd: Already loaded
com.apple.geod: Already loaded
com.apple.gkreport: Already loaded
com.apple.gssd: Already loaded
com.apple.hdiejectd: Already loaded
com.apple.hidd: Already loaded
com.apple.IFCStart: Already loaded
com.apple.installd: Already loaded
com.apple.kcproxy: Already loaded
com.apple.Kerberos.digest-service: Already loaded
com.apple.Kerberos.kadmind: Already loaded
com.apple.Kerberos.kcm: Already loaded
com.apple.Kerberos.kdc: Already loaded
com.apple.Kerberos.kpasswdd: Already loaded
com.apple.KernelEventAgent: Already loaded
com.apple.kextd: Already loaded
com.apple.kuncd: Already loaded
com.apple.locate: Already loaded
com.apple.locationd: Already loaded
com.apple.lockd: Already loaded
com.apple.locum: Already loaded
com.apple.logind: Already loaded
com.apple.loginwindow: Already loaded
com.apple.ManagedClient: Already loaded
com.apple.mbicloudsetupd: Already loaded
com.apple.mdmclient.daemon: Already loaded
com.apple.mDNSResponder: Already loaded
com.apple.mDNSResponderHelper: Already loaded
com.apple.metadata.mds: Already loaded
com.apple.metadata.mds.scan: Already loaded
com.apple.metadata.mds.spindump: Already loaded
com.apple.msrpc.lsarpc: Already loaded
com.apple.msrpc.mdssvc: Already loaded
com.apple.msrpc.netlogon: Already loaded
com.apple.msrpc.srvsvc: Already loaded
com.apple.msrpc.wkssvc: Already loaded
com.apple.netauth.sys.auth: Already loaded
com.apple.netauth.sys.gui: Already loaded
com.apple.netbiosd: Already loaded
com.apple.networkd: Already loaded
com.apple.networkd_privileged: Already loaded
com.apple.NetworkDiagnostics: Already loaded
com.apple.nlcd: Already loaded
com.apple.newsyslog: Already loaded
com.apple.nfsconf: Already loaded
com.apple.nfsd: Already loaded
com.apple.nis.ypbind: Already loaded
com.apple.notifyd: Already loaded
com.apple.ocspd: Already loaded
com.apple.opendirectoryd: Already loaded
com.apple.PCIELaneConfigTool: Already loaded
com.apple.periodic-daily: Already loaded
com.apple.periodic-monthly: Already loaded
com.apple.periodic-weekly: Already loaded
com.apple.pfctl: Already loaded
com.apple.platform.ptmd: Already loaded
com.apple.powerd: Already loaded
com.apple.preferences.timezone.admintool: Already loaded
com.apple.preferences.timezone.auto: Already loaded
com.apple.printtool.daemon: Already loaded
com.apple.racoon: Already loaded
com.apple.RemoteDesktop.PrivilegeProxy: Already loaded
com.apple.RemotePairTool: Already loaded
com.apple.ReportCrash.Root: Already loaded
com.apple.revisiond: Already loaded
com.apple.RFBEventHelper: Already loaded
com.apple.rpcbind: Already loaded
com.apple.rpmuxd: Already loaded
com.apple.sandboxd: Already loaded
com.apple.SCHelper: Already loaded
com.apple.scsid: Already loaded
com.apple.secd: Already loaded
com.apple.security.syspolicy: Already loaded
com.apple.SecurityAgent: Already loaded
com.apple.securityd: Already loaded
com.apple.ServerPerfLog.aslmanager: Already loaded
com.apple.ServerPerfLog: Already loaded
com.apple.shutdown_monitor: Already loaded
com.apple.sleepservicesd: Already loaded
com.apple.smb.preferences: Already loaded
com.apple.softwareupdatecheck.initial: Already loaded
com.apple.softwareupdatecheck.periodic: Already loaded
com.apple.spindump: Already loaded
com.apple.spindump_symbolicator: Already loaded
com.apple.stackshot: Already loaded
com.apple.statd.notify: Already loaded
com.apple.storereceiptinstaller: Already loaded
com.apple.suhelperd: Already loaded
com.apple.syslogd: Already loaded
com.apple.sysmond: Already loaded
com.apple.systemkeychain: Already loaded
com.apple.systempreferences.install: Already loaded
com.apple.systempreferences.writeconfig: Already loaded
com.apple.SystemStarter: Already loaded
com.apple.taskgated-helper: Already loaded
com.apple.taskgated: Already loaded
com.apple.TrustEvaluationAgent.system: Already loaded
com.apple.ucupdate.plist: Already loaded
com.apple.uninstalld: Already loaded
com.apple.unmountassistant.sysagent: Already loaded
com.apple.usbmuxd: Already loaded
com.apple.UserEventAgent-System: Already loaded
com.apple.UserNotificationCenter: Already loaded
com.apple.var-db-dslocal-backup: Already loaded
com.apple.vsdbutil: Already loaded
com.apple.warmd: Already loaded
com.apple.webdavfs_load_kext: Already loaded
com.apple.wifid: Already loaded
com.apple.WindowServer: Already loaded
com.apple.xpcd: Already loaded
com.apple.xprotectupdater: Already loaded
com.vix.cron: Already loaded
org.apache.httpd: Already loaded
org.cups.cupsd: Already loaded
org.ntp.ntpd: Already loaded
org.postfix.master: Already loaded

Est-ce que j'ai commencé tous les Damon de ce répertoire ? Comment restaurer l'état de démarrage du Daemon à partir de là ?

Editar : http://pastie.org/private/rwvizio9isyklcsunm4vw - la liste des services en cours d'exécution fournie par launchd% list

Edición2 : http://pastie.org/7748739 - réel /var/db/launchd.db/com.apple.launchd/overrides.plist le contenu du fichier.

1 votes

Ils étaient déjà en cours d'exécution, remarquez "Déjà chargé". Donc la commande que vous avez utilisée n'a essentiellement rien fait. Il n'y a rien à restaurer non plus, puisque ces choses sont automatiquement chargées au démarrage.

1 votes

@l'L'l : Non, ceux pour lesquels il a imprimé des messages étaient déjà chargés, mais ceux pour lesquels il a imprimé des messages étaient déjà chargés. n'a pas les messages d'impression pour ne l'étaient pas (et ne devraient probablement pas l'être). BTW, Marcel : Je suppose que vous avez exécuté ce programme en tant que Root ?

0 votes

Oui, malheureusement. Je l'ai redémarré et il semble qu'il ne démarre pas de démon indésirable, mais je ne suis toujours pas sûr des implications, le cas échéant.

4voto

Fuzzy Purple Monkey Points 702

launchctl load -w modifie /var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist y sudo launchctl load -w modifie /var/db/launchd.db/com.apple.launchd/overrides.plist .

Essayez de restaurer le fichier qui a été modifié à partir d'une sauvegarde et de redémarrer. Ou vous pouvez probablement le supprimer. Sur ma VM 10.8 presque intacte, le plist peruser est vide, et le plist Root ressemble à ceci :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.ftpd</key>
    <dict>
        <key>Disabled</key>
        <true/>
    </dict>
    <key>com.apple.mrt</key>
    <dict>
        <key>Disabled</key>
        <true/>
    </dict>
    <key>com.apple.smbd</key>
    <dict>
        <key>Disabled</key>
        <true/>
    </dict>
    <key>org.ntp.ntpd</key>
    <dict>
        <key>Disabled</key>
        <false/>
    </dict>
</dict>
</plist>

com.apple.ftpd n'existe même pas, com.apple.smbd est désactivé par défaut, et org.ntp.ntpd n'est pas désactivé par défaut, donc il désactive juste com.apple.mrt.

0 votes

Mon fichier Root contient beaucoup de clés avec Disable false, peut-être que la commande que j'ai lancée a effectivement démarré tous les démons... Je suis toujours bloqué et je me demande comment je peux retrouver un état plus ou moins original des démons de démarrage.

0 votes

Essayez simplement de supprimer toutes les entrées qui contiennent <key>Disabled</key><false/> à partir du fichier overrides.plist. Sur mon compte, overrides.plist active aussi par exemple com.apple.locate et org.apache.httpd mais vous pouvez les réactiver manuellement.

0 votes

Je vais essayer dès que je serai chez moi. Je déteste juste le fait qu'Apple ne se soit pas rapproché des mécanismes de démarrage/arrêt des démons BSD, ou peut-être que je les déteste parce que je n'ai pas la patience d'apprendre à utiliser launchctl et autres utilitaires.

LesApples.com

LesApples est une communauté de Apple où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres utilisateurs d'appareils Apple, poser vos propres questions ou résoudre celles des autres.

Powered by:

X