On 09/08/2006, Jon Barber wrote:
hello cygwin gurus
i can't get crontab services to start. i just followed the instruction
from running cron_diagnose.sh version 1.5, and there were a number of
things it reported wrong that i tried to fix. the final problem is when i
try to start cron, i get the following error:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus: Win32
error 1062:
The service has not been started.
attached is the output of 'cygcheck -srv > cygcheck.txt'
any help very much appreciated
jon barber
----------------------------
my entire log of steps i tried is this:
following the instructions here:
http://sources.redhat.com/ml/cygwin/2004-03/msg00379.html, which involves
successively running a diagnostic script to find config errors
* i downloaded and ran the cron_diagnose.sh script
* it first reported the following
The permissions on the file /etc/passwd are not correct.
Please run 'chmod +r /etc/passwd', and run this script again.
* when i looked in /etc, i saw that many of the files were owned by
"thadmin", which was the administrative account we originally used
to setup the machine.
* so i chown'ed most of those files to Administrator, and chmod'ed
them +r, and ran the script again. * it still complained that
/etc/passwd had incorrect permissions -
turns out /etc/passwd is "-rwxr-xr--+", so i modified the script
to accept the + sign in hopes that doesn't matter
* it then reported the following
The permissions on the file /etc/group are not correct.
Please run 'chmod +r /etc/group', and run this script again.
* so i chmod'ed it +r, and ran the script again. * it then reported
the following
The group membership of your crontab file should be SYSTEM,
as documented in the file /usr/share/doc/Cygwin/cron.README.
You can change this setting with:
chgrp SYSTEM /var/cron/tabs/Administrator
Please check your crontab's group membership, and
run this script again.