Linux service and Source for cron job

Posted by Sirish Kumar on Stack Overflow See other posts from Stack Overflow or by Sirish Kumar
Published on 2010-04-27T17:13:12Z Indexed on 2010/04/28 10:03 UTC
Read the original article Hit count: 276

Filed under:
|
|

Hi,

I am new to linux and writing a service in C++ which spawns multiple threads and I am starting the service by calling it from init.d, but how should I send the terminate signal to my application from the script , so that my service terminates all the threads and exits.

And also where can I find the source code for any linux services. e.g. /etc.init.d/rc5.d/S14cron . It will be helpful in understanding how to implement a service.

© Stack Overflow or respective owner

Related posts about linux

Related posts about service