pg_ctl register and omitted log parameter and no stop parameters?

Grabo

Senior member
Apr 5, 2005
252
56
101
Hello,

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?

How do I add stop parameters to this (a) windows service? Why is the log start parameter ignored? (This is a company machine and even if not explicit it might have to do with permissions if what I've done above would be expected to result in what I'm trying to do)

Any helpful comments will be appreciated :)