RE: PerlSvc questions
by David Hares other posts by this author
Feb 28 2002 7:06PM messages near this date
Re: PerlSvc questions
|
Re: PerlSvc questions
> I don't think so. You could write information to a file or the registry
> during install time and read it back at Startup time. Could you explain
> why you need this?
Sure. I need to run multiple copies of the same script as a service, but of course two serv
ices cannot share the same name. I
could build multiple exe files with PerlSvc::Name defined differently in each, but I'd rathe
r not. I discovered that you can add
more arguements on the startup line beyond "foo -install" and access them (was this intended
?). Thus, my install command looks like
"foo -install -svcname=FOO1 -cfgfile=foo1.cfg". Sure enough, I can use GetOpt to get svcnam
e, set PerlSvc::Name, and service FOO1
is installed and can be started. Unfortunately, the code loses the install context, you can
not set arguments, and does not know the
service name; without context it cannot determine any other instance related information. I
tried setting the "start parameters"
from the service manager service properties screen, but did not find any way to access them.
I was/am going to look at CPAN to see
if anything looked interesting, but any suggestions you have are welcome.
Thanks
_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
David Hares
David Hares
Jan Dubois
David Hares
Jan Dubois
|