Si el proceso sigue reapareciendo, lo más probable es que se inicie con launchd . Utilice launchctl para enumerar los trabajos cargados en launchd:
sudo launchctl list
launchctl list
Definiciones de trabajo para launchd en Los archivos .plist se almacenan en:
~/Library/LaunchAgents Per-user agents provided by the user.
/Library/LaunchAgents Per-user agents provided by the administrator.
/Library/LaunchDaemons System-wide daemons provided by the administrator.
/System/Library/LaunchAgents Per-user agents provided by Mac OS X.
/System/Library/LaunchDaemons System-wide daemons provided by Mac OS X.
También puede grep los archivos anteriores para la ruta real al ejecutable.
Para todos los procesos, puede verificar la salida de ps -ef | grep <process_name> y verificar el proceso principal PPID .
UID PID PPID C STIME TTY TIME CMD
501 17151 7357 0 9:35AM ttys000 0:00.00 grep grep
En este ejemplo, el proceso grep se generó a partir del proceso 7357 . Más tarde, puede consultar ps -ef | grep 7357 para descubrir que fue el proceso bash que inició grep .