problem starting crontab services
Jon Barber
jbarber@thetus.com
Fri Sep 8 23:55:00 GMT 2006
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.
* so i did so, ran the script again, and it then reported
This script did not find any errors in your crontab setup.
If you are still unable to get cron to work, then try
shutting down the cron service, uninstalling it,
reinstalling it, and restarting it.
The following commands will do that:
$ cygrunsrv --stop cron
$ cygrunsrv --remove cron
$ cygrunsrv --install cron -p /usr/sbin/cron -a -D
$ cygrunsrv --start cron
If the cron service does not start, try deleting the file
/var/run/cron.pid and then repeating the commands above.
If none of this fixes the problem, then report your problem
to cygwin@cygwin.com. Please include a copy of your crontab,
('crontab -l') and the output of 'cygcheck -srv > cygcheck.txt'.
* so i rebooted the computer, since there were hung cronjobs, and then
* i did all the above steps. but, i get the following error trying
to start the service:
$ cygrunsrv --start cron
cygrunsrv: Error starting a service: QueryServiceStatus: Win32
error 1062:
The service has not been started.
* so i sent a copy of the output of cygcheck to the group
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060908/99778c25/attachment.txt>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list