This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygrunsrv pause


On Aug 20 06:41, Unknown wrote:
> Because I want to put the thread in suspend mode, instead of just stopping and restarting. I don't want the cron to start from the beginning.

I'm not sure what the difference is, behaviour-wise, and I'm also not
sure if cron doesn't choke on this (cron is known for problems resulting
from jumps in the current timestamp), but you can simply try to send
SIGSTOP/SIGCONT from an administrative account to the cron process, like
this:

  kill -STOP $(cat /var/run/cron.pid)
  kill -CONT $(cat /var/run/cron.pid)


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]