Adding to the previously indicated:
2012/6/5 Richie Adler <[email protected]>:
> When creating a new Fossil service, the command
>
> fossil winsrv create Tickets ...
>
> doesn't create a service called "Tickets", but a service called "Fossil-DSCM".
> There's no way to change the low-level service name. This is not the
> documented behaviour, when the service name is supposed to be the one
> specified in the command line.
a more precise test suggests that:
* If I just do
> fossil winsrv create XXX
the service gets created with the indicated name
* If I add any parameters, it doesn't, trying instead of create the
service with the default name (and failing if it already exists).
I think part of the problem is in winhttp.c, lines 549-551:
if( g.argc==4 ){
zSvcName = g.argv[3];
}
where the name is only changed if there are exactly 4 parameters
(i.e.: no flags).
Would this condition work (considering that the service name is
documented as optional)?
if( g.argc>3 && g.argv[3][0] != '-' ){
-----
Also, the documented parameters say:
** -p|--port TCPPORT
**
** Specifies the TCP port (default port is 8080) on which the
** server should listen.
Notice the LOWERCASE "p".
However, in winhttp.c, line 589:
zPort = find_option("port", "P", 1);
I would say this is a documentation error.
--
o-=< Marcelo >=-o
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users