Skip site navigation (1) Skip section navigation (2)

Re: pg_autovacuum fails to start - 8.0 Release

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Harald Massa" <ghum(at)gmx(dot)net>,<pgsql-hackers-win32(at)postgresql(dot)org>
Cc: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pg_autovacuum fails to start - 8.0 Release
Date: 2005-01-20 15:28:49
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4528581@ratbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-patches
 

> -----Original Message-----
> From: pgsql-hackers-win32-owner(at)postgresql(dot)org 
> [mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org] On Behalf 
> Of Harald Massa
> Sent: 20 January 2005 13:30
> To: pgsql-hackers-win32(at)postgresql(dot)org
> Subject: [pgsql-hackers-win32] pg_autovacuum fails to start - 
> 8.0 Release
> 
> I am trying to install pg_autovacuum as a win32 service.
> 
> pg_autovacuum -I -N ourdomain\postgres -W secretpassword -E 
> pgsql-8.0 -d 4
> -L c:\ghum\data\pg_log\autovacuum.log -U postgres -P 
> moresecretpasswords
> 
> when trying to start:
> 
> C:\Programme\PostgreSQL\8.0\bin>sc start pg_autovacuum
> [SC] StartService FAILED 1075:
> 
> Der Abhõngigkeitsdienst ist nicht vorhanden oder wurde zum 
> L÷schen markiert.
> 
> (english: 1075 The dependency service does not exist or has 
> been marked for
> deletion.  ERROR_SERVICE_DEPENDENCY_DELETED)

It appears I didn't read the docs properly when I write that bit - the dependencies parameter passed to CreateService() is supposed to be double-null terminated - a subtle point I missed :-(

The attached patch fixes this. Harald - I can email an updated .exe if you want to test, otherwise, you should be able to use the current version if you cleanup the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\pg_autovacuum\DependOnService registry key.

Regards, Dave

Attachment: pg_autovacuum.c.diff
Description: application/octet-stream (1.4 KB)

Responses

pgsql-patches by date

Next:From: Harald MassaDate: 2005-01-20 16:07:20
Subject: Re: pg_autovacuum fails to start - 8.0 Release
Previous:From: Alvaro HerreraDate: 2005-01-20 14:44:29
Subject: Re: Translations at pgfoundry (was Re: [PATCHES] Latest Turkish translation updates)

pgsql-hackers-win32 by date

Next:From: Harald MassaDate: 2005-01-20 16:07:20
Subject: Re: pg_autovacuum fails to start - 8.0 Release
Previous:From: Harald MassaDate: 2005-01-20 13:29:47
Subject: pg_autovacuum fails to start - 8.0 Release

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group