Swimming with the Razorfishes

Wednesday, November 24, 2004

Question for the Unix weenies:

I'm writing a start / stop script for a server. It is a typical thing you might find in /etc/rc.d (or equivalent), with start | stop | restart arguments. It will sometimes be run by hand.

I want to trap some signals, particularly ctrl-c, but only in the server start function.

Is it OK to trap signals in the functions, rather than at the top of the script?

0 Comments:

Post a Comment

<< Home