I run a simple script on a remote computer to connect my computer
every 30 minutes. Now I want to extend the script to connect
immediately and finally when the remote computer is shutting down.
So i setup a simple shell script with some trap handling for SIGHUP,
SIGTERM, SIGINT and it works when I start it in a shell and send the
right signals. But my script used to be started by launchd and at the
moment it looks to me, that launchd did not send any signal to
managed processes.
First I thought maybe the network is down when my script receives
some of the above signals and I can not get the signals any more. But
I extended my script to write into a log-file when it receives
SIGINT, -HUP or -TERM. But there was nothing in the log-file.
I searched for launchd and read the man pages. There is nothing
mention what happens when a system is shutdown. (BTW. The same script
works as expected running on a linux-box)
Could some one enlighten me please, thanks,
Christoph
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden