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]

'cron' fails to stop


I have installed 'cron' as a service using the following:
    cygrunsrv -I cron -d "CYGWIN cron" -p /usr/sbin/cron -a -D -e
"CYGWIN=server ntsec tty" -i

It starts and runs fine using:  cygrunsrv -S cron
A reading of the services shows:

Service             : cygserver
Display name        : CYGWIN cygserver
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cygserver

Service             : cron
Display name        : CYGWIN cron
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -D

However, when I try to stop it using: cygrunsrv -E cron
I get the following:

cygrunsrv: Error stopping a service: QueryServiceStatus:  Win32 error
1053:
The service did not respond to the start or control request in a timely
fashion.

'ps -a' shows the cron process is still present:
     3648       1    3648       3648    ?   18 20:59:40
/usr/bin/cygrunsrv
     3680    3648    3648       2108    ?   18 20:59:40 /usr/sbin/cron

A reading of the services shows:

Service             : cygserver
Display name        : CYGWIN cygserver
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cygserver

Service             : cron
Display name        : CYGWIN cron
Current State       : Stop Pending
Controls Accepted   : Stop
Command             : /usr/sbin/cron -D

I have to use 'kill' to remove the process.

Is my installation of the service wrong, or is this a bug?

The readout of 'cygcheck -s' is attached.
Cygwin Configuration Diagnostics
Current System Time: Sat Apr 01 20:59:46 2006

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2

Path:	C:\cygwin\home\Jerry\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\Program Files\ATI Technologies\ATI Control Panel
	C:\PROGRA~1\COMMON~1\SONICS~1\
	C:\dev-cpp\bin\
	.

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1007(Jerry)    GID: 545(Users)
0(root)             513(None)           544(Administrators) 545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1007(Jerry)    GID: 545(Users)
0(root)             513(None)           544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'Jerry'
PWD = '/var/log'
CYGWIN = 'server ntsec'
HOME = '/home/Jerry'
MAKE_MODE = 'unix'

Use '-r' to scan registry

a:  fd             N/A    N/A                    
c:  hd  NTFS    148977Mb  41% CP CS UN PA FC     
d:  cd             N/A    N/A                    
e:  cd             N/A    N/A                    
f:  hd  NTFS    238472Mb  16% CP CS UN PA FC     QT

.                                             /cygdrive  user    binmode,cygdrive
C:\cygwin                                     /          system  binmode
C:                                            /c         system  binmode
c:\Jerry\PalmDev                              /PalmDev   system  textmode
C:\cygwin/bin                                 /usr/bin   system  binmode
C:\cygwin/lib                                 /usr/lib   system  binmode
C:\Jerry                                      /x         system  binmode
F:                                            /y         system  binmode
C:\Documents and Settings\Jerry\My Documents  /z         system  binmode
.                                             /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\dev-cpp\bin\cpp.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\dev-cpp\bin\gcc.exe
Found: C:\dev-cpp\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\dev-cpp\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\dev-cpp\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl
Found: C:\cygwin\bin\rm.exe
Found: C:\dev-cpp\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

   56k 2005/07/09 C:\cygwin\bin\cygbz2-1.dll
    7k 2005/11/20 C:\cygwin\bin\cygcharset-1.dll
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll
 1108k 2005/10/17 C:\cygwin\bin\cygcrypto-0.9.7.dll
 1047k 2005/10/11 C:\cygwin\bin\cygcrypto-0.9.8.dll
  895k 2004/04/28 C:\cygwin\bin\cygdb-4.2.dll
 1156k 2004/04/28 C:\cygwin\bin\cygdb_cxx-4.2.dll
  174k 2004/10/14 C:\cygwin\bin\cygexpat-0.dll
   40k 2006/03/24 C:\cygwin\bin\cygform-8.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll
  323k 2005/07/10 C:\cygwin\bin\cyggcrypt-11.dll
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll
  135k 2005/03/16 C:\cygwin\bin\cygglib-1-2-0.dll
   12k 2005/03/16 C:\cygwin\bin\cyggmodule-1-2-0.dll
   12k 2005/07/09 C:\cygwin\bin\cyggpg-error-0.dll
   10k 2005/03/16 C:\cygwin\bin\cyggthread-1-2-0.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll
   24k 2006/03/25 C:\cygwin\bin\cyghistory6.dll
  947k 2005/11/20 C:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   21k 2006/03/24 C:\cygwin\bin\cygmenu-8.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll
   67k 2006/03/24 C:\cygwin\bin\cygncurses++-8.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  227k 2006/03/24 C:\cygwin\bin\cygncurses-8.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll
   12k 2006/03/24 C:\cygwin\bin\cygpanel-8.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll
  176k 2005/09/06 C:\cygwin\bin\cygpcre-0.dll
  299k 2005/09/06 C:\cygwin\bin\cygpcrecpp-0.dll
    6k 2005/09/06 C:\cygwin\bin\cygpcreposix-0.dll
 1173k 2006/03/29 C:\cygwin\bin\cygperl5_8.dll
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll
  152k 2006/03/25 C:\cygwin\bin\cygreadline6.dll
  231k 2005/10/17 C:\cygwin\bin\cygssl-0.9.7.dll
  215k 2005/10/11 C:\cygwin\bin\cygssl-0.9.8.dll
   65k 2005/08/23 C:\cygwin\bin\cygz.dll
 1768k 2006/03/09 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.5.20
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 155
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Mar 9 10:36:48 EST 2006
        Snapshot date: 20060309-10:35:06
        Shared id: cygwin1S4


Service             : cygserver
Display name        : CYGWIN cygserver
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cygserver

Service             : cron
Display name        : CYGWIN cron
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -D


Cygwin Package Information
Package              Version
_update-info-dir     00386-1
alternatives         1.3.20a-2
apache               1.3.33-2
ash                  20040127-3
base-files           3.7-1
base-passwd          2.2-1
bash                 3.1-4
bc                   1.06-2
binutils             20050610-1
byacc                1.9-1
bzip2                1.0.3-1
clear                1.0-2
coreutils            5.94-4
cron                 3.0.1-19
crypt                1.1-1
cvs                  1.11.21-1
cygrunsrv            1.15-1
cygutils             1.2.10-1
cygwin               1.5.19-4
cygwin-doc           1.4-3
diffutils            2.8.7-1
editrights           1.01-1
expat                1.95.8-1
findutils            4.3.0-1
gawk                 3.1.5-4
gcc                  3.4.4-1
gcc-core             3.4.4-1
gcc-g++              3.4.4-1
gcc-mingw-core       20050522-1
gcc-mingw-g++        20050522-1
gdbm                 1.8.3-7
glib                 1.2.10-3
glib-devel           1.2.10-3
grep                 2.5.1a-2
groff                1.18.1-2
gzip                 1.3.5-1
hexedit              1.2.10-1
less                 381-1
lftp                 2.6.10-2
libbz2_1             1.0.3-1
libcharset1          1.9.2-2
libdb4.2             4.2.52-1
libdb4.2-devel       4.2.52-1
libgcrypt            1.2.1-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libgpg-error         1.1-1
libiconv             1.9.2-2
libiconv2            1.9.2-2
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libncurses-devel     5.5-2
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.5-2
libpcre              4.1-2
libpcre0             6.3-1
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.1-5
login                1.9-7
make                 3.80-1
man                  1.5p-1
mingw-runtime        3.9-2
mktemp               1.5-3
ncurses              5.5-2
openssl              0.9.8a-1
openssl097           0.9.7i-1
patch                2.5.8-8
pilrc                3.2
ping                 1.0-1
prc-tools            2.3
readline             5.1-5
run                  1.1.8-1
rxvt                 2.7.10-6
sed                  4.1.5-1
ssmtp                2.60.9-3
tar                  1.15.1-4
tcltk                20060202-1
termcap              20050421-1
terminfo             5.5_20060323-1
texinfo              4.8-1
unzip                5.50-5
vim                  6.4-4
w32api               3.6-1
wget                 1.10.2-1
which                1.7-1
zip                  2.3-6
zlib                 1.2.3-1
Use -h to see help about each section
--
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]