Skip to main content
Question

killall Dock fails in Self Service

  • February 11, 2026
  • 0 replies
  • 4 views

smurf
Forum|alt.badge.img+1

For test purposes, I have a very simple shell script. 

#!/bin/sh

killall Dock

exit 0

A policy runs the script, and it’s available in Self Service. When I run it from Self Service, it works as expected (I can see the Dock restart itself). Hooray!

However... (1)Self Service reports “Item Failed”, and (2)when I go to the Policy and check its logs, there’s no indication the Policy ever ran (status remains Pending).

Is there a way to reset the Dock that Self Service won’t regard as a failure, and fail to log the Policy execution?