One slightly hackish way would be the grab the PID, and check in ps aux as to if it was running. That's one way to do what you are talking about.
~ nick On Wed, 2006-07-05 at 00:43 +0200, Enrico Weigelt wrote: > * Pablo Yanez Trujillo <[EMAIL PROTECTED]> schrieb: > > what about "/etc/init.d/ntpd zap"? It deletes the file on /var/.... and set > > the status of the init.d-file as not started. It is useful for such a case > > :) > > The problem is: if the service still runs, it will attemt to start it > twice. So this cannot be used in automatic processes, just for manual > intervention. > > We should think about mechanisms to check if the service is > actually running. This could also be used for frequently service > checks and notification. > > > cu > -- > --------------------------------------------------------------------- > Enrico Weigelt == metux IT service > > phone: +49 36207 519931 www: http://www.metux.de/ > fax: +49 36207 519932 email: [EMAIL PROTECTED] > cellphone: +49 174 7066481 > --------------------------------------------------------------------- > -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- > --------------------------------------------------------------------- -- [email protected] mailing list
