services, daemons ...
Ken Ray
kray at sonsothunder.com
Fri Jan 31 11:59:01 EST 2003
> Can I write services for windows and daemons for unix using Revolution?
>
> Actually the thing is I want to run a program as a server application
> because nobody would be logged in on the PC.
>
> So is it possible to make an application that has no user interface?
You can make an application with no UI. And as far as writing Windows
services is concerned, Dar Scott had this to say back in April:
> From: "Dar Scott" <dsc at swcp.com>
> To: <use-revolution at lists.runrev.com>
> Sent: Tuesday, April 02, 2002 10:50 PM
> Subject: Re: Running a standalone as a W2K service
>
>
> On Tuesday, April 2, 2002, at 09:16 PM, Troy Rollins wrote:
>
> > So, how'd you go about it?
>
> I used srvany.exe to run the standalone as a service. It and
> documentation is in the W2K resource kit. (If you can find
> servany, but not the help, let me know and I give a few tips.) I
> couldn't get srvany.exe to work right by putting the standalone
> path into the "Start Parameters" field in services; I had to change
> the registry. (I didn't use Revolution to change the registry, I
> wasn't sure whether it could add keys.)
>
> I put my startup code in a handler named startup in the stack.
> This starts the send cycles and will eventually start the comm
> cycles.
>
> I was able to run the service with or without a GUI and with or
> without network communication (UDP broadcast for testing). (The
> common wisdom is that Microsoft won't let you do both, so I don't
> know what I did for that.) There is a check box in services which
> controls this: "Allow services to interact with desktop." While
> you are logged out, the GUI is invisible.
>
> I haven't tested whether openCard or openStack are called when the
> GUI is turned off.
>
> If you know you will not need the GUI you might see if the service
> loads faster if you make the stack invisible. I haven't tested
> this. (I imagine the standalone going through the motions of
> painting, but the painting having no effect.)
>
> I haven't set up the dependencies yet. I don't think I have to
> since TCP/IP loads as a driver before the services.
>
> I bet one could run the simple chat demo as a service this way.
>
> That's all I know and perhaps a little more.
>
> Dar Scott
I don't know about UNIX daemons, but I would expect that you could write
them as well.
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list