This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygrunsrv logging OK; patch to --args handling


On Tue, May 22, 2001 at 11:55:03AM -0500, Fred Yankowski wrote:
> OT: The code to handle quotes in the --args value didn't work for me
> until I applied the attached small patch.  I've tested it in a few
> cases, but it deserves a careful inspection.

Thanks for that patch. After testing that feature I have later
"optimized" the code without testing it again...

> With this change, cygrunsrv does a good job of wrapping a PostgreSQL
> service, except for the NT-shutdown case (which I haven't tested yet). 
> Here is how I'm setting up that service:
> 
>     /usr/local/src/cygrunsrv-cvs/cygrunsrv.exe --install postmaster2 \
> 	--path /usr/local/pgsql/bin/postmaster \
> 	--args "-D /usr/local/pgsql/data -i -d 2 -o '-o /var/log/postgres.log'"
> \
> 	--dep ipc-daemon --termsig INT --user postgresql
> 
> I was using --stderr too, but the default works just as well.

Good to here. Thanks for testing. Do you think we should release
the current state then?

> 	* cygrunsrv.cc (eval_arglist): Fix handling of quoted options.

BTW, it's ok just to send that new entry to the ChangeLog ;-)

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]