From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86508 invoked by alias); 11 Jul 2019 22:57:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 86500 invoked by uid 89); 11 Jul 2019 22:57:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*u:en-US, H*UA:en-US, H*u:5.1, H*UA:0.9 X-HELO: mail-oi1-f172.google.com Received: from mail-oi1-f172.google.com (HELO mail-oi1-f172.google.com) (209.85.167.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Jul 2019 22:57:08 +0000 Received: by mail-oi1-f172.google.com with SMTP id v186so5844312oie.5 for ; Thu, 11 Jul 2019 15:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:references:from:openpgp:autocrypt:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Eb7kj3u4oLRF0c1OCavEGvRCgD/OXJylxFDvjfVvp8M=; b=a+ZXGkTLi+AqjvJLMvfUPj1MXnCnp9v/jfcBv06aRbszXohHWLiwmICyf+2QAfGAet MFVyIu13skW7emfhyw+XQLHyIw4noSzFHNHMXQPl2wmkpMz8Ni0FVZca07V6KoonRz+h wSjcd0iS4wYrf1jRJMh6EuNzExULRcZI2XlqLepiak9iexfHC4eETyRlvCusyIaTCR/N OQZ9z0cJcmMs1HYlnytSizR46wZIIO7XmV484fuqRv+2ZPmHUIccC7ZI3zQFuO/YbHe1 fwJ9pxVDjHin/J0jifVxa5chivfacsaaxNEAXOKdKc4OojmmVVqY4nU8TOS2VlBHnD7n ZWSg== Return-Path: Received: from [192.168.10.5] ([200.57.195.23]) by smtp.gmail.com with ESMTPSA id c66sm2338568oia.58.2019.07.11.15.57.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 15:57:05 -0700 (PDT) To: cygwin@cygwin.com References: <61a6773b-5fe9-62e0-78ec-7684ee0d04b0@SystematicSw.ab.ca> <74357359-436a-0ead-f7bc-b288572d6cc3@SystematicSw.ab.ca> From: =?UTF-8?Q?Ren=c3=a9_Berber?= Openpgp: preference=signencrypt Subject: Re: How to start and verify cron? Message-ID: <4fe0eeb8-9de0-4c13-0d76-38a802247edd@gmail.com> Date: Thu, 11 Jul 2019 22:57:00 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2019-07/txt/msg00092.txt.bz2 On 7/11/2019 4:20 PM, David Karr wrote: >>>> How do I add service dependencies to start up in a particular order? >>> >>> In an elevated cmd or bash shell: >>> elevated > OR # sc config syslog-ng depend= cygserver >>> elevated > OR # sc config cron depend= syslog-ng/cygserver >>> N.B. the "=" is part of each keyword; multiple service dependencies are >>> separated by "/". >> > After doing all of this, I still can't get cron jobs to work, and I can't > get any info on why. Doing all of "that" doesn't change a running cron daemon; those only afect the initial run after boot up. > This is the current output from "crontab -l": ... > I've tried editing that last one and changing the minutes to include > upcoming minutes, and then after those minutes, I check the results, and > there are none. Nothing in cron.log or syslog-ng.log. Editing in this context means running 'crontab -e' (which uses vi to edit the user's cron table). After exiting that (with ZZ to save & exit, or :wq) cron sends a message to the log, which, by the way may need to be configured (i.e. syslog-ng has its own configuration, an in there may be a line that says where cron's log goes, or if it is ignored). Restarting the daemon should also produce a line in the log, which is another notification that it is working. In Linux I even have set the cron daemon's log level to show the start of all cron jobs; that parameter in Cygwin would go as optional parameter in the installation as service ("-L 1" in the cygrunsrv line of the installation script, or maybe running cygrunsrv again, visible and editable in the "Start parameters" at the service Properties view). -- R.Berber -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple