in reply to How to trap logoff

Anonymous Monk,
This looks exactly like another post. If the suggestions there are of no help, could you explain more about why you need this functionality? I am guessing you want to have your daemon "shutdown" properly. Seeing a bit of the daemon or a sample script or why you need to handle "shutdowns" might go a long way in getting help.

Cheers - L~R