Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How I can execute a user logout script in mountain lion?

I've read that logouthook have been deprecated but I can't find how execute a logout script without this method.


Anyone may help me?


Regards

Alessandro

iMac, OS X Mountain Lion (10.8.3)

Posted on May 16, 2013 2:46 PM

Reply
6 replies

May 19, 2013 12:25 PM in response to baltwo

Hello baltwo,


I've read these article yesterday but the first one is about the LoginHook that Apple, in the second article, says that are deprecated.


The second article say to use launchd instead LoginHook and LogoutHook.


I've tried to do this but launchd works (I think...) only to launch a login script with the option RunAtLoad.

Nothing is specified with regard to the logout script.


PS.

Launchd with login script work only with restart but not with a shutdown and a power-on ... I'm investigating this behavior!!


I'm sorry for my poor english.

How I can execute a user logout script in mountain lion?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.