I've only been vaguely following this thread, so sorry if this has already
been discussed.

I know you can use a combination of cfexecute and a batch file to restart
ColdFusion if you use the scheduler service.

On Windows you'd do that with something like this:

at 14:00 "cfrestart.bat"

cfrestart.bat would have the necessary commands to stop and start whatever
services you need.

As long as you don't need for the restart to happen inside the next minute
it works a treat.

Spike

--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org


>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Jeff Congdon
>Sent: Wednesday, August 04, 2004 3:19 PM
>To: CF-Talk
>Subject: Re: remote restart cfmx service
>
>In fact, I tried this once -- put together a .bat with the stop and
>start commands and cfexecuted it... It killed CF, but wouldn't
>complete
>the .bat to bring it back up, as you would expect
>
>-jc
>
>Jochem van Dieten wrote:
>
>> Tony Weeg wrote:
>> >
>> > jochem, why the question about parent and not child service, or
>> > something like that?
>>
>> If you start a process from another process, it is known as a
>> child process. You can see this with a tool like tlist from the
>> resource kit, run it with the -t option and you see a tree of
>> processes.
>> Normally, if you kill a parent, all the children die (open the
>> task manager, right click a running task and select "End process
>> tree"). So if you have a process executing a batchfile in a child
>> process, I would expect the child process to die as soon as the
>> parent process dies. That means you will not be able to restart
>> the parent process from the child.
>> So I doubt using cfexecute to restart CF will work.
>>
>> Jochem
>>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to