Win: pg_ctl register, log parameter vanishes and stop parameters?

From: Ephebopus <perssond9(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Win: pg_ctl register, log parameter vanishes and stop parameters?
Date: 2015-02-06 11:18:47
Message-ID: 1423221527907-5836913.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi all,

Have a Win 2008 64 R2 server with postgresql 9.1 installed.

Tried to register pg_ctl as a Win service with its "register" parameter:

'pg_ctl register -N postg -D "<path_to_pgdata_dir>" -l <path_to_log_file>
--silent -w -o "-p 54321 -i" -m fast'

Now the "postg" service is visible in Windows service manager and under
"Path to executable" is 'pg_ctl.exe runservice -N "postg" -D
"<path_to_pgdata_dir>" -w -s -o "-p 54321 -i"'

The service starts alright but the log specified is ignored and as to how it
stops..well, the default is "smart", not "fast", so I assume that's what it
does?

Would one normally add stop parameters to a Win service someplace else
perhaps, and somewhere specific for Postgresql? The log parameter is used if
the db server is started via the cli with the above parameters but doesn't
appear in the Win service properties and isn't used in effect.

There are permissions restrictions in effect on this machine which may be
the reason for unexpected results, if that's what these are, I suppose.
Chances are I've merely not understood PostgreSQL and/or Windows services
though :)

--
View this message in context: http://postgresql.nabble.com/Win-pg-ctl-register-log-parameter-vanishes-and-stop-parameters-tp5836913.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

Browse pgsql-novice by date

  From Date Subject
Next Message Ravi Kiran 2015-02-07 20:25:28 modifying the source code
Previous Message Chuck Roberts 2015-02-05 14:58:22 Re: How to round a double8 data type in sql?