8

I am trying to follow this manual, which contains the instruction:

restart taskgated service by killing the current running taskgated process

How to do it? I am trying to find taskgated and got only some ttys007, but no task gated process:

$ ps | grep taskgated
66942 ttys007    0:00.00 grep --exclude-dir=.svn taskgated
$lsof | grep taskgated
$
Paweł Gościcki
  • 9,066
  • 5
  • 70
  • 81
klm123
  • 12,105
  • 14
  • 57
  • 95

3 Answers3

6

To save one step, simply execute:

sudo pkill taskgated

Since this is a process required by the kernel, it will be automatically respawned.

Paweł Gościcki
  • 9,066
  • 5
  • 70
  • 81
houtanb
  • 3,852
  • 20
  • 21
5

taskgated is root process, therefore you need to use sudo.

$sudo lsof | grep taskgated  


taskgated   13            root  cwd       DIR                1,2       1156        2 /
taskgated   13            root  txt       REG                1,2      71520   530715 /usr/libexec/taskgated
taskgated   13            root  txt       REG                1,2      29968   706441 /System/Library/PrivateFrameworks/ConfigProfileHelper.framework/Versions/A/ConfigProfileHelper
klm123
  • 12,105
  • 14
  • 57
  • 95
Parag Bafna
  • 22,812
  • 8
  • 71
  • 144
0

Restarting your computer also works.

Undo
  • 25,519
  • 37
  • 106
  • 129
Wally
  • 47
  • 7