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: Re: [cygrunsrv] problem starting exim as service


Peaty,
 I had the same problem.  And I agree that cygrunsrv should tell us
correctly whether or not exim is running.  In fact exim does get set
to run as a daemon on boot up.
cygrunsrv  -L (or whatever the list) processes option will not show
you this.  I believe that it should show this process as running (but
some say that exim detaches itself and so cygrunsrv can't know about
it)..  if would know if it did a process check, but that's another
matter..

So you may be trying to start exim when it is already running.
When you start up get into a cygwin terminal and type
ps -aW | grep exim

That fact was that exim was running.

Also I had priviledge problems that I got around with chmod.

Henman

--------------------------

On 3/12/07, Peatey <peatey@gmail.com> wrote:
Success! your showing me about cygcheck solved it.  Now I'm moving on
to configuring /etc/exim.conf, but I thought I'd document for a future
neophyte with the same problem.

The issue was with cyglber-2-3-0.dll and cygldap-2-3-0.dll not being
installed automatically with 'exim-4.66-1' package in setup.exe (2-2-7
dlls were installed instead).  Perhaps this is an application
packaging bug for 'exim-4.66-1'?

The issue was not the PATH environmental variable (which I already had
set correctly before).
The issue does not seem to be the file permissions either (I set the
chown/chmod for /var/log/exim and /var/spool/exim back to
peatey:User/770 and the service still starts fine).

Thanks René, three cheers for the helpful cygwin mailing list!

> Just for the record, if you run `cygcheck /usr/bin/exim-4.66-1.exe` before
> changing the PATH, you'll see that the executable does not find some of the
> libraries (/usr/bin/exim is a symbolic link to the real executable); the path
> where those are should be added to Window' PATH (the service doesn't see the
> same PATH you see inside a shell, it sees the general Windows PATH or one
> specified at the time the service is installed).

$ cygcheck /usr/bin/exim-4.66-1.exe
C:/cygwin/bin/exim-4.66-1.exe
  C:/cygwin/bin\cygcrypt-0.dll
    C:/cygwin/bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\KERNEL32.dll
        C:\WINDOWS\system32\RPCRT4.dll
  C:/cygwin/bin\cygcrypto-0.9.8.dll
  C:/cygwin/bin\cyggdbm-4.dll
  C:/cygwin/bin\cygiconv-2.dll
Error: could not find cyglber-2-3-0.dll
Error: could not find cygldap-2-3-0.dll
  C:/cygwin/bin\cygminires.dll
  C:/cygwin/bin\cygssl-0.9.8.dll
Error: could not find cyglber-2-3-0.dll
Error: could not find cyglber-2-3-0.dll
Error: could not find cyglber-2-3-0.dll

Well, cygcheck couldn't find it in /bin, since those .dlls weren't
there.  So I searched for the names in the Cygwin Package List and
installed 'libopenldap2_3_0' package. I then ran cygcheck again.

$ cygcheck /usr/bin/exim-4.66-1.exe
C:/cygwin/bin/exim-4.66-1.exe
  C:/cygwin/bin\cygcrypt-0.dll
    C:/cygwin/bin\cygwin1.dll
      C:\WINDOWS\system32\ADVAPI32.DLL
        C:\WINDOWS\system32\ntdll.dll
        C:\WINDOWS\system32\KERNEL32.dll
        C:\WINDOWS\system32\RPCRT4.dll
  C:/cygwin/bin\cygcrypto-0.9.8.dll
  C:/cygwin/bin\cyggdbm-4.dll
  C:/cygwin/bin\cygiconv-2.dll
  C:/cygwin/bin\cyglber-2-3-0.dll
  C:/cygwin/bin\cygldap-2-3-0.dll
    C:/cygwin/bin\cygminires.dll
    C:/cygwin/bin\cygssl-0.9.8.dll
    C:/cygwin/bin\cygsasl2-2.dll

$ exim-config
************************************************
This script sets some key parameters of the exim
installation and starts the exim daemon.
See the details in /usr/share/doc/Cygwin/exim-X-Y.README.
    Interrupt with ^D.

OK. No usernames contain spaces.

OK. The /etc/aliases file contains "postmaster".

OK. The primary hostname gmail.com
    is already defined in /etc/exim.conf.

INFO: Some programs expect /usr/sbin/sendmail to handle mail.
Currently it is a symbolic link to /usr/bin/exim.

Exim is already installed as a service under account 'LocalSystem'.
Do you want to remove or reinstall it? (yes/no) yes
OK. The exim service was removed.

Do you want to install the exim daemon as a service? (yes/no) yes
Enter the period of the queue runner, in minutes: [15]
Enter the value of CYGWIN for the daemon: [ntsec notraverse]

Do you want to start the exim daemon as a service now? (yes/no) yes
OK. The mail daemon is now accepting mail.
    You can test it with "telnet localhost 25".

INFO: The exim log files are in /var/log/exim.

When everything else fails,
    read /usr/share/doc/Cygwin/exim-X-Y.README,
    or look up the documentation on www.exim.org.
Many happy mailings :)

--
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/



-- 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]