Starting and Stopping an Instance

We are looking at setting up our CF10 server such that each application will be in its own instance, and allowing the developers access to their own instance.  Is there any way to start and stop the instances from within the instance?  We are hoping that there is some way to do this without logging into the cfusion administrator to manage the restarts of each instance.  We are installed on Windows.
Thanks!
Jenn

The administrator could run the following code:
<cfscript>
instanceName="bkbk";
createObject("component", "CFIDE.adminapi.administrator").login("admin_password") ;
serverInstanceObject=createObject("component", "CFIDE.adminapi.serverinstance");
// start the instance of given name
serverInstanceObject.startInstance(instanceName);
// stop the instance of given name
// serverInstanceObject.startInstance(instanceName);
</cfscript>
<!--- properties and methods of Serverinstance.cfc --->
<!--- <cfdump var="#serverInstanceObject#">--->

Similar Messages

  • Starting and Stopping an FMS Instance?

    Hi there,
    I'm sorry if this issue has already been answered somewhere else, but my Google skills are up to par and I was unable to find a documented resolution to this problem within the last few days.  Opening a new topic was my last resort.
    I am designing a live-streaming system for a client.  We've been running an instance 24/7 for the last month and my client just received an enormous bill for that.
    Basically we need to be able to start and stop the instance as needed.  When I check the checkbox next to it in the Management Console and click on Instance Actions, Stop and Start are greyed out.  I am allowed to Terminate and Reboot the instance, but I'd like to keep my same instance and simply turn it on and off in between live streams.  I've read that the Start and Stop options are disabled because my instance is not stored on an EBS volume, and that running FMS on an EBS volume is not supported.  Must I leave the instance running all the time in order to get around having to set it up each time I need it?  Is there any sort of workaround or widely accepted answer for this?
    Thanks again.

    Hi Smit,
    I believe you are talking about FMS AWS instance and you may be using a centos 4.0.2 instance AMI or lower?
    Well ... earlier,  options for stopping a centos AWS image was not available, but recently they are there in place, so I suppose if you use a new centos 4.5.1 AMI then probably you can start stop the aws instance on yuor will. Give ut a shot and let me know.
    Regards,
    Shiraz Anwar
    I again cross-checked and found that you were right, start and stop is not supported there .... an alternative method is to take a snapshots of the runinng instnace and terminate that instance after that, later you can use your snapshot to attach to the EBS volume to run your system again. You may need to use the Elastic IP address, because you wont like your users to update each time you terminate the old instance, and create new instance from snapshot. I have never used it in this way, but this is one of the approach.

  • Starting and Stopping Instances from Netweaver Administrator does not work.

    When we go to our http://<host>:<port>/nwa and navigate to Systems. We see our instances, although we see status and UNKNOWN.
    Also, when we click down to see our server nodes, and try and restart them or stop them...we enter our user/pass for Unix and but it doesn't do anything.
    Does anyone know what is involved to get this functionality to work? We're not looking install CCMS or anything like that, we just want th ability to start and stop our cluster from the central instance web administration screens.
    Thanks,
    -Tim

    Just works for us, without needing any config.
    If your running unix the alternative method is to use a tool called JCMON, much better than NWA.
    log in as <sid>adm onto your host.
    jcmon pf=/usr/sap/PEP/SYS/profile/PEP_JC00_xxxxx
    for our production portal for example;
    Which allows you to do admin on your java instance only.
    use the menu options 10 - 21.
    Message was edited by:
            James Ibbotson
    Message was edited by:
            James Ibbotson

  • Starting and stopping Instances

    How do you start a server using the 6.0 web based console? I see how to
    check their status but not how to start and stop them.
    Mark Vaughn
    Sr. Web Analyst
    First American Real Estate Information Services
    wk:214-879-5067 fax:214-589-9644

    Mark, it is not supported in the 6.0 release.
    Mark Vaughn <[email protected]> wrote in message
    news:[email protected]..
    How do you start a server using the 6.0 web based console? I see how to
    check their status but not how to start and stop them.
    Mark Vaughn
    Sr. Web Analyst
    First American Real Estate Information Services
    wk:214-879-5067 fax:214-589-9644

  • Report on active sync actions (like starting and stopping the sync)

    Is there a way to report on who stopped or started an active sync? I'm guessing it has to be stored somewhere, but I can't find it.
    Thanks!

    Hi Smit,
    I believe you are talking about FMS AWS instance and you may be using a centos 4.0.2 instance AMI or lower?
    Well ... earlier,  options for stopping a centos AWS image was not available, but recently they are there in place, so I suppose if you use a new centos 4.5.1 AMI then probably you can start stop the aws instance on yuor will. Give ut a shot and let me know.
    Regards,
    Shiraz Anwar
    I again cross-checked and found that you were right, start and stop is not supported there .... an alternative method is to take a snapshots of the runinng instnace and terminate that instance after that, later you can use your snapshot to attach to the EBS volume to run your system again. You may need to use the Elastic IP address, because you wont like your users to update each time you terminate the old instance, and create new instance from snapshot. I have never used it in this way, but this is one of the approach.

  • How to start and stop a server

    I am doing some sockets programming.
    Now, when I want to get the TomCat 4 server running for instance, I would have to run the startup.bat or startup.sh file. To stop the server I run the shutdown.bat or shutdown.sh file.
    Can I do the same thing in Java?
    That is, in one window, I run a program: C:\>java myserver start
    The server starts running and holds there.
    In another window, I run another command: C:\>java myserver stop
    and the server in the other window stops.
    I am thinking the server would be running in a thread. When I shut it down, I close the thread just like in the Applet Clock example.
    I've tried this but it doesn't work.
    Can anyone please advise.
    Thanks.
    Anthony.

    Not precisely that way, but just off the top of my head, you would have to have a handle to the proccess (server) in the first window, then have a monitor program that allows you take this handle and end it. I would make this monitor program be the gateway to starting and stopping your server. To run a .bat file you can use runtime.exec().

  • Sql server agent is not highlighting start and stop options

    I configured snapshot replication , after that sql server agent is not highlighting start and stop options in instance.
    But I can start & stop it in services.msc
    how I can solve this?

    Hi,
    Can you post exact error message.
    Also refer below article, may be similar issue like yours.
    How to start SQL Server Agent when Agent XPs show disabled
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • Starting and Stopping OBIEE 11g services in AIX

    Helllo Experts
    Could you pls. let me know how to start and stop OBIEE11g services in AIX.
    Here I mean , do I need to update my . profile with all the paths OR setDomainEnv.sh will take care of that.
    How to start Admin and BI server, Node manager ......what is the exact nohup command , do I need to put some parameter while starting Admin and Managed server.
    Regds
    Shahzad

    Hello User,
    Below the way you can start:-
    To start the Weblogic Server:-
    Go to the below directory location
    $OBIEE_HOME /user_projects/domains/bifoundation_domain
    Command:
    $nohup sh ./startWebLogic.sh -Dweblogic.management.username=weblogic -Dweblogic.management.password=<Password> > wls_start.log &
    $tail –f wls_start.log
    To start the Node Manager:
    Go to the below directory location
    $OBIEE_HOME/wlserver_10.3/server/bin
    Command:
    $nohup ./nodemanager.sh &
    To Start OPMNCTL:
    Go to the below directory location
    $OBIEE_HOME /instances/instanceN/bin
    Command:
    ./opmnctl startall
    ./opmnctl stopall
    ./opmnctl status
    Please mark helpful/Correct.
    Thanks,
    OBIEELearner.

  • Starting and stopping applications via a Java-application on Windows/Unix

    Hello,
    I want to start java and other applications via a java application.
    This java application should start several different applications on windows and
    on unix systems and take care of their current state (e.g. running/not running).
    For all applications to be started there are .sh-scripts for unix and .bat-scripts
    for windows. In the scripts there could be a java call, e.g. "java someApplication",
    or some executables could be called. These scripts set the applications' environment etc.
    and start the application finally.
    My java application calls these scripts via the ProcessBuilder API, which is working fine.
    But there is the following problem: on windows, when executing a script that starts
    some other application, the ProcessBuilder gives me process-handle to the started
    process. If calling destroy() on this handle, only the cmd.exe gets killed which
    started the application. The application itself is running on. This is undesired behaviour
    since I want to be able to control the started applications, at least start and stop it which
    is impossible that way.
    On unix, it is working when using
    "exec java someApplication"
    instead of just
    "java someApplication"
    in the .sh-scripts. The exec command substitutes the shell process with the underlying
    process started in the script, so everything is working as expected on unix.
    But how could I get this working on windows systems? Is there any equivalent to the exec
    command on unix? Any suggestions appreciated.
    If something's unclear in my description, please let me know.

    Yes - after looking at this option - I think that's the direction I am going to go. It probably makes sense to give my JMS topics and my BPEL server their own OC4J instances anyway - for a number of reasons.
    Lon

  • Starting and stopping triggered samples

    The ESX24 Sampler claims to be a plug-in that functions exactly like a sampler should. Previous to Logic Pro 7, I used a SP-606 sampler that had three different ways a sample could be played:
    1. drum - this function played the sample as long as the button (or note) was held down then stopped playing once released
    2- trigger - this started the sample and let it play until the end of the entire audio region
    3- loop - this looped the sample based on the specified start and stop points.
    However under the second function, trigger, you could trigger the sample to start and stop and restart and stop every time you hit the sample button or sent a note.
    Does logic have this function anywhere in the ESX24?
    for instance if i had a 15 second long sample and sent a midi note from a controller to start it...how do i stop it and restart it at will?
    the only functions I see available in Logic are the 'drum' function (where the sample releases and stops as long as you hold down the note) and the trigger function (but in Logic a second trigger does not stop the sample ----
    it triggers a second sample to play again --so that multiple samples are playing simultaneously)
    Any help would be greatly appreciated.

    Start Oracle RAC Database and Listener
    Follow Oracle Database Documentation on starting and stopping Oracle Database
    To ensure Oracle Warehouse Builder Runtime Services
    Log on to the Database machine Platform as the runtime repository owner.
    Run the ORACLE_HOME\owb\rtp\sql\servie_doctor.sql script.
    Note: The runtime repository owner is dwh_ws_owner and it is database user.
    Starting Oracle BI Infrastructure
    •     Login to Oracle BI Server
    •     Navigate to location /home/oracle/..
    •     Execute Script startBI.sh for Starting Oracle BI Services
    If you have to start Services Manually -
    Order of Starting Processes on BI Servers
    •     Oracle Business Intelligence Server
    •     Oracle Business Intelligence Presentation Services
    •     Oracle Business Intelligence Scheduler
    •     Oracle Business Intelligence Cluster Controller
    Use the script in sequence with parameter start
    •     Navigate to location /home/oracle/biserver/OracleBI/server/bin directory
    Example:
    •     ./run-sa.sh start
    •     ./run-saw.sh start
    •     ./run-sch.sh start
    •     ./run-ccs.sh start
    Stopping Oracle BI Infrastructure
    •     Login to Oracle BI Server
    •     Navigate to location /home/oracle/scripts
    •     Execute Script stopBI.sh for Stopping Oracle BI Services
    If you have to stop Services Manually -
    Order of Starting Processes on BI Servers
    •     Oracle Business Intelligence Cluster Controller
    •     Oracle Business Intelligence Server
    •     Oracle Business Intelligence Presentation Services
    •     Oracle Business Intelligence Scheduler
    Use the script in sequence with parameter start
    •     Navigate to location /home/oracle/biserver/OracleBI/setup directory
    Example:
    •     ./run-ccs.sh stop
    •     ./run-sa.sh stop
    •     ./run-saw.sh stop
    •     ./run-sch.sh stop

  • RAC hangs when starting or stopping 2nd instance of 2 node RAC

    Has anyone seen the problem with all transactions and/or logins hanging when starting or stopping the 2nd node of a 2 node RAC database. When I shut down the 2nd instance using srvctl I occasionally get errors and long delays connecting. On our larger database with instances having a very large SGAs, trying to connect you sometimes get ORA-12537 or ORA-01033. Users experience a very long hang before getting the errors. These instances have very large SGAs of about 30GB on each node.
    In the log of the first instance we see messages like the following for quite a while.
    Global Resource Directory frozen
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Mon Jan 8 06:59:08 2007
    LMS 1: 0 GCS shadows cancelled, 0 closed
    Mon Jan 8 06:59:08 2007
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Mon Jan 8 06:59:23 2007
    LMS 0: 20740 GCS shadows traversed, 4001 replayed
    Mon Jan 8 06:59:23 2007
    LMS 1: 20744 GCS shadows traversed, 4001 replayed
    Mon Jan 8 06:59:23 2007
    LMS 0: 20882 GCS shadows traversed, 4001 replayed
    Mon Jan 8 06:59:23 2007
    LMS 1: 20627 GCS shadows traversed, 4001 replayed
    Mon Jan 8 06:59:24 2007
    LMS 0: 20781 GCS shadows traversed, 4001 replayed
    Mon Jan 8 06:59:24 2007
    Thanks in advance.

    I have tested with only one node and starting and stopping is much faster without any cache fusion traffic. The application is not RAC aware, it was written without regard for RAC. As you say there may be some accessing of the same block by all nodes causing RAC to remaster blocks when a node is shut down.
    My concern is the length of time users are afftected when I am starting a node that has been offline for a while. With the large SGA I have, it appears users are affected adversely for several minutes, in affect causing an outage which we are trying to avoid by using RAC.

  • How to start and stop Oracle Application Server from ANT

    How to start and stop Oracle Application Server and Web application from ANT
    Thanks in Advance.
    Mani

    Hi,
    You can use: startManagedWebLogic.sh, it is in your domain directory and you have to execute it in this way
    ./startManagedWebLogic.sh managedServerName http://adminServerHost:adminServerPort
    For instance, in my case I use:
    unixserv01:/webportal/domains/appServerWeb/bin>startManagedWebLogic.sh managedServ01 http://pelma3w3per01.mesaperu.next:7001
    You have to run it on the machine where the managed server was installed.
    Best regards,
    Raúl

  • Starting and stopping SAP in Unix

    Hi,
    Pls tell me the command to start and stop sap in Unix.
    I dont want to start and stop the Database
    Pls help

    Log on in UNIX as a user with SAP administrator authorization (<sid>adm).
    To start the central instance, call the shell script
    startsap_<host>_<instance no> in the home directory
    of the <sid>adm user. If there is only one instance for each application server, the
    alias startsap points to the script startsap_<host>_<instance no>.
    The script startsap first starts the saposcol process which collects statistical
    data for the operating system that it provides to the SAP system.
    The next step is a check to see if the database is running. If not, the script
    startdb is called to start the database.
    The final step starts all of the processes for the instance (message server,
    dispatcher, work processes, and so on).
    After the central instance is started, you can optionally start other instances.
    The startsap script can be called with the following options:
    DB: starts the database system
    R3: starts the instances and associated processes for the instance
    ALL: starts the database system and the instance (default setting, can be omitted)
    To start the SAP system, the startsap script calls the sapstart process with
    the start profile specified in the script in the variable START_FILES.
    The stopsap script can be called with the following options:
    DB: stops the database system with the help of the stopdb script
    R3: stops the instances of the SAP system
    ALL: stops the database system and the instance (default setting, can be
    omitted)
    The database can be stopped separately with database tools.

  • Starting and stopping services of SAP and database

    pls tell what are the Starting and stopping services of SAP and database

    Hi Ranga,
    The services dealing with SAP and database(Ex: Oracle in this case) are:
    SAP<SID>_<Instance No.>  (For ex: SAPECC_01)
    SAPOsCol
    Oracle<SID><No>Listener
    OracleCSSservice
    OracleService<SID>
    Reward points if it is helpful##
    Thanks & Regards,
    Santhosh P
    Please change the status to answered if you got the solution...
    Message was edited by:
            Santhosh Kumar P

  • Action Script 3 code not working for start and stop button?

    Ok so I have this simple animation I created of a circle that moves from one side of the stage to the other. I have added a new layer and called it buttons. On this layer I have added 2 buttons. One for start and another one for stop. The purpose is to get my circle to move from one side of the stage to the other but be able to use my buttons so that I can start and stop the animations at random times during playback. I fixed all my compiler errors now the problem lies in that everytime I click the start or the stop button I get an output error. I have a 3rd layer in which is titled actions and this is where all my code is posted. I removed that layer and placed my code in the first frame of the buttons layer to see if this would change anything but I still get the same output errors. So I just added back my actions layer. What could I be doing wrong? I have made sure to name all my movie clips and buttons correctly and I even added an instance name to them.
    Here is my code and the errors I am getting when I press the play and stop button on test-
    start_btn.addEventListener(MouseEvent.CLICK, startCircle);
    stop_btn.addEventListener(MouseEvent.CLICK, stopCircle);
    function startCircle(e:MouseEvent):void{
        circle.play();
    function stopCircle(e:MouseEvent):void{
        circle.stop();
    green_btn.addEventListener(MouseEvent.CLICK, greenCircle);
    red_btn.addEventListener(MouseEvent.CLICK, redCircle);
    function greenCircle(e:MouseEvent):void{
        circle.play();
    function redCircle(e:MouseEvent):void{
        circle.stop();
    Here are my output errors-
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/redCircle()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at exercise2_fla::MainTimeline/greenCircle()

    ok so my circle is my movie clip and it is titled circle and the instance name is circle. Am I supposed to change MovieClip to circle? I put the code at the top of my actions script but for some reason it did not work. I did change play to stop and it got the movie clip to stop when I do test movie but my buttons still do not work. So I changed stop back to play. Strange.
    I did try changing MovieClip to circle but that did not work so I did Circle with a capital C and that did me no good eigther.
    I meant to add that I did get an error that said- 1180 Call to a possibly undefined method circle.

Maybe you are looking for