I have a command-line program I wrote in C that I need to be executed everytime the computer shuts down. On one of my friends computers there is a folder called rc (I think) in the /etc directory, and you can place programs in that and they will be executed at shutdown.
Mac OS X however doesn't seem to have one of those.
Alternatively, if there is no shutdown scripts folder in Mac OS X, which it looks like there isn't, I can just make my application sit idle until it recieves a signal from the computer that it is going to shutdown, and I could have it run when it recieves that signal. Does anyone know if Mac OS X sends such a signal, and if so how I would recognise it?
This is my first post here. Hi everyone
Mac OS X however doesn't seem to have one of those.
Alternatively, if there is no shutdown scripts folder in Mac OS X, which it looks like there isn't, I can just make my application sit idle until it recieves a signal from the computer that it is going to shutdown, and I could have it run when it recieves that signal. Does anyone know if Mac OS X sends such a signal, and if so how I would recognise it?
This is my first post here. Hi everyone