> I'm new to the list. Sorry if this is a repeat question.
> 
> Does anyone have a way to remotely start/stop CF4.5 services? 
> I seem to remember being able to start/stop the ColdFusion 
> services (through an applet?) in older versions of the server...
> but can't seem to find out how to do the same on the newer ones.

The applet isn't provided any more - it was considered a security problem,
although with a bit of setup it would be relatively safe.

If you have another scripting engine installed on the same server, like ASP,
you could use a script to cycle CF. I wrote one for ASP which works passably
well on my machine:

<% ' Response.Buffer = False %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
        <title>Cycle CF!</title>
</head>

<body>

<% 
Dim strMachineName
strMachineName = "MACHINE" ' You'll need to change this to the appropriate
machine name.

Set Service = GetObject("WinNT://" & strMachineName & "/Cold Fusion
Application Server")
If Service.Status <> 1 Then 
        Service.Stop
        Response.Write("CF Service Stopped!<br>")
End If

If Service.Status <> 4 Then
        Service.Start
End If
Response.Write("CF Service Started!")
%>

</body>
</html>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to