• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

pg_ctl register and omitted log parameter and no stop parameters?

Grabo

Senior member
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 🙂
 
Back
Top