Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 4 Feb 2004 15:07:41 +0100 From: dAniel hAhler Message-ID: <344534526.20040204150741@thequod.de> To: cygwin-list Subject: cannot run POPFile with cygrunsrv anymore MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i14E9qXw029952 Hello cygwin-list, I'm getting nuts on this. I want to use cygrunsrv to run POPFile (EMail Classification, Perl) as a service. I managed to do so, but did a clean install of my XP and now I don't get it anymore to work. Tried it first with the old cygwin directory and then did a fresh install of cygwin to a new directory (d:\cygwin - the old one was renamed to d:\cygwin.old). I install the service this way: $ cygrunsrv -I popfile -p /cygdrive/d/Programme/POPFile.perl/popfile.pl -c /cygdrive/d/Programme/POPFile.perl/ -o But starting results in: $ cygrunsrv -S popfile cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. Then there will be the directory \var\log created in root of C: (!) with an empty popfile.log (0 byte). If I install the service with my username the calling of the service seems to be ok, but POPFile fails on missing BerkeleyDB.pm. I managed to get this with CSPAN (or sth like that) on the old cygwin installation (it was put into /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int). But as this CSPAN thingy was a mess I would rather use BerkeleyDB from the cygwin-setup package, what I tried by installing the 4.1 package(s), but no BerkeleyDB.pm anywhere.. So this is actually two problems: - SYSTEM account seems to be broken and - can I get the required BerkeleyDB files from the cygwin distribution? .-----[ /etc/passwd ]----- | | SYSTEM:*:18:544:,S-1-5-18:: | Administratoren:*:544:544:,S-1-5-32-544:: | Admin:unused_by_nt/2000/xp:500:513:U-BASE\Admin,S-1-5-21-1935655697-1957994488-1060284298-500:/home/Admin:/bin/bash | ASPNET:unused_by_nt/2000/xp:1004:513:ASP.NET Machine Account,U-BASE\ASPNET,S-1-5-21-1935655697-1957994488-1060284298-1004:/home/ASPNET:/bin/bash | dAniel:unused_by_nt/2000/xp:1003:513:U-BASE\dAniel,S-1-5-21-1935655697-1957994488-1060284298-1003:/home/dAniel:/bin/bash | dAny:unused_by_nt/2000/xp:1005:513:dAny,U-BASE\dAny,S-1-5-21-1935655697-1957994488-1060284298-1005:/home/dAny:/bin/bash | Gast:unused_by_nt/2000/xp:501:513:U-BASE\Gast,S-1-5-21-1935655697-1957994488-1060284298-501:/home/Gast:/bin/bash | Hilfeassistent:unused_by_nt/2000/xp:1000:513:Hilfeassistentenkonto für den Remotedesktop,U-BASE\Hilfeassistent,S-1-5-21-1935655697-1957994488-1060284298-1000:/home/Hilfeassistent:/bin/bash | SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US,U-BASE\SUPPORT_388945a0,S-1-5-21-1935655697-1957994488-1060284298-1002:/home/SUPPORT_388945a0:/bin/bash | '------------------- In /etc/profile I put HOME=/home/$USER just after setting of USER (USER="`id -un`" + EXPORT) XP's eventlog says: PID 2884 : starting service `popfile' failed: execv: 255, error 255. Probably the SYSTEM account has the same problem with starting POPFile (missing BerkeleyDB) _plus_ some weird home directory setting.. hmm? I could provide more debug info, but as cygwin (and *nix) is quite new to me, I dunno what.. Please enlighten me. -- shinE! http://www.thequod.de ICQ#152282665 GnuPG/PGP key: http://thequod.de/danielhahler.asc -- 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/