Processes cannot be signalled directly from outside the process.
What I've done in the past is to write a trap (essentially a callback routine) for a signal eg SIGHUP which then eg re-reads the cfg file, in which I've set a value to tell it to terminate or whatever.
Of course, if its a server listening on a socket, you could send a special msg that it recognises.
|