Restart CF server through any API?

Hi All,
Is there anyway we can restart the coldfusion server through any code or API?
We are having coldfusion MX 7. We do not have access to to the server for restarting. Every time we need to wait for the Administrator to restart it.
Thanks in advance for your help..:)

This is not an easy question to answer. I will say this. I don’t think there is an Admin API method to stop CF, and even if there was, it could not “start” it (because CF would now be down). So how you deal with this depends as much on how CF is running and on what OS. If this is production, most people on Windows run CF as a service.  If on *nix, most run it as a daemon (though I will admit I am far less familiar with that.)
As for running CF as a Windows service, one could argue that you could/would/should restart the Windows service itself. In that case, you could look into any Windows-based way to stop (and/or restart) the service, such as the command line tool, NET STOP servicename and NET START servicename.  You could put those in a batch file, of course.
Another thing to note, though, is that if there were a way to somehow kill CF from within CF itself (whether a documented or undocumented way), there is still that need to start it again. CF won’t know, if you “kill” it, that it should start itself again, whether as a service or daemon.
But note that at least with the Windows Service, there is in fact a mechanism in place (a shadow service watching it, the jrunsvc.exe process that you always see running) that will in fact watch the CF service (the jrun.exe process) and if it sees it stop, that will restart the service.
Hope that helps some, while you await ideas from others.
/charlie

Similar Messages

  • Restart approval process through Thor api in oim 9i

    Hi,
       I am using oim 9i.
    Scenario:
       For a resource object i have a object form and a child form along with it.
       The user fills the object form along with the child form and submits for approval.
       During the approval process the user(requester) is able to edit the child form even though approval is started and approved by some stakeholders.
       Can we restart the approval process if any changes is made on child form?
       Also i have added entity on POST-Insert on child form.I come to know whenever there is change on the form.
       But on the change in the child form i want to trigger approval back to the 1st approver(restart the approval process).
    Could you help me with the api for restarting approval process or any url link which would help.
    Regards,
    Nirav

    okk...thanks for the replies..
    I am a newbie and wanted to know how to call this process task adapter as i currently have entity adapter on POST-insert on child form which identifies that there is some update..So does that means through entity adapter i need to call the process task of a approval process?
    Also is it possible to get the value of user who updated the child form as soon as it is updated?
    On post-insert adapter when i try to get the value of "formupdate by" whenever it is triggered it gives me the previous "update by" and not the current "update by" value?
    Does the database get updated later or am i doin somethng wrong,beacuse if it is a post-insert i should get values of "latest update by" on the form?

  • Restarting Coldfusion Server

    Hi All,
    Is there anyway we can restart the coldfusion server through any code or Admin API?
    We are having coldfusion MX 7. We do not have access to to the server for restarting. Every time we need to wait for the Administrator to restart it.
    I want to know is there any Admin API which we can use to restart the server?
    Thanks in advance for your help..:)

    Have you looked at the docs? Only relevant one is serverinstance.cfc - "Start, stop, and restart JRun servers. This CFC only works when running the multiserver configuration"
    Generally a website wouldn't have permissions to restart a Windows service, so no.

  • Is there any API for connecting web server and iphone apps

    Hi,
    I have to retrieve data from Web Server and display in my iphone apps. I want to know that is there any API through which i can connect my apps to server and get data.
    One way i know that use NSURLConnection and get XML response and prase it and use it like that.
    So anyone know this?
    Thanks.

    NSURLConnection is straightforward to use. In the mobile world, and especially if you intend to use certain google APIs, I would rather tend to use JSON instead of XML. A great JSON parser for objective-c is here: http://code.google.com/p/json-framework/
    Cheers,
    Marcelo

  • Control key not working on MB Pro while connected to windows 2008 server through 2x client. Any ideas? Works on windows through parallels.

    Control key not working on MB Pro while connected to windows 2008 server through 2x client. Any ideas? Works on windows XP through parallels desktop.

    Hello...
    It seems I got it fixed!! I had been trying the Fixit tool from
    http://support.microsoft.com/kb/306759  while typing up there :))))
    This tool is for changing RDP port but running it fixed my problem (I kept the port 3389 intact)!!
    Hope it helps someone.

  • Is there any way to restart Agentry Server without restarting SMP3.0 server?

    Hello Experts,
    Is there anyway to restart Agentry server, without restarting SMP server? I want to modify the setting of Agentry app and restart the Agentry to make change effective. Each time I restart Agentry, I have to restart the SMP3.0. It is very inconvenient.
    Please assist me on this issue. Thank you very much.

    That is something I believe they are working on for the next SP release (along with multiple Agentry apps on the same SMP 3 server).  I don't know if there is an offical way to do this but will see if I can get any answer.
    --Bill

  • Nodemanager does not restart managed server after Linux OS reboot

    Running Linux 2.6.18, Sun JDK 1.6.0_14, and WebLogic 10.3, we have a correctly functioning nodemanager watching a single managed server. If I kill -9 the managed server, the nodemanager fires up a new one immediately. If, however, we reboot the box, the nodemanager will start cleanly and will not start the managed server. It appears to believe the node should remain down and reports its status as UNKNOWN.
    I've seen where this is a known problem on Windows boxes, easily gotten around by supplying the -Xrs parameter to the startup parms for the managed server. (Section 5 of the general nodemanager config doc.) I don't see, however, where there's an equally clean solution for Linux.
    Things I've tried:
    + When I set the server to DEBUG, it shows zero sign of receiving a shutdown signal. It's dumping loads of cluster messages, etc, into the log and then suddenly the log just ends so it's dying via kill -9. If the nodemanager is still running at that time, it might try to restart the managed server and log it somewhere as permanently failed.
    + The nodemanager only logs to INFO level, and logs no evidence of deciding to leave the node down. (DEBUG is an invalid LogLevel, so that's all I've got.)
    + A restart signal sent from our AdminServer (on another Linux box) successfully starts the managed node through the nodemanager. Nothing unusual occurs or is logged.
    Things I'm curious about:
    + Is there some way to see in what state the nodemanager believes the managed server to be?
    + Is there some value in some doc somewhere that might say the server should not be restarted?
    + Is there not a log of NodeManager client actions? I don't see anything in domain.log or AdminServer.log except when the NM is down.
    Thanks,
    Kevin
    ListenPort=5556
    ListenBacklog=50
    SecureListener=true
    AuthenticationEnabled=true
    NativeVersionEnabled=false
    CrashRecoveryEnabled=true
    JavaHome=/appl/java/jre
    StartScriptEnabled=false
    StopScriptEnabled=false
    StartScriptName=startWebLogic.sh
    StopScriptName=
    LogFile=/appl/bea/wlserver_10.3/common/nodemanager/logs/nodemanager.log
    LogLevel=INFO
    LogLimit=0
    LogCount=1

    can you set NativeVersionEnabled to true. We have faced this in windows which was fixed by changing this property. Some notes from that issue:
    Faced this interesting issue in Windows 2008 environment. Managed Servers were started by node manager and it was expected that on a system restart after a crash, the node manager will restore the state of the managed servers to the state it was before the crash. Node Manger was configured to run as a windows service. Hence it started after the server restart. But the individual managed servers were not getting started. Interestingly, for the managed servers started by the node manager there were no <Managed_Server_Name>.lck file in the <Server>/data/NodeManger folder.
    To fix this always set the following properties in the nodemanager.properties on the node maager home directory.
    CrashRecoveryEnabled=true /* This by default is set to false. This needs to be turned for auto restart after crash to work */
    NativeVersionEnabled=true /* This is by default set to true and it should be set as such. If you turn this off on platforms for which weblogic provide native JNI libraries ( e.g. as in Windows 2008) then this wont create the .lck file and hence node manager wont restart the managed server after the crash.
    Note: As per official documentation .lck files are required for weblogic node managers to do auto restart after system crash
    From Official documentation:
    After the system is restarted, Node Manager checks each managed domain specified in the nodemanager.domains file to determine if there are any server instances that were not cleanly shutdown. This is determined by the presence of any lock files which are created by Node Manager when a WebLogic Server process is created. This lock file contains the process identifier for WebLogic Server startup script. If the lock file exists, but the process ID is not running, Node Manager will attempt to automatically restart the server.
    If the process is running, Node Manager performs an additional check to access the management servlet running in the process to verify that the process corresponding to the process ID is a WebLogic Server instance.
    After the system is restarted, Node Manager checks each managed domain specified in the nodemanager.domains file to determine if there are any server instances that were not cleanly shutdown. This is determined by the presence of any lock files which are created by Node Manager when a WebLogic Server process is created. This lock file contains the process identifier for WebLogic Server startup script. If the lock file exists, but the process ID is not running, Node Manager will attempt to automatically restart the server.If the process is running, Node Manager performs an additional check to access the management servlet running in the process to verify that the process corresponding to the process ID is a WebLogic Server instance.
    */

  • Why do I need to stop and restart web server?????

    I am developing servlets on sun's standard web server as well as with Netscape's web server.
    The problem is every time I make any changes to servlet and recompile my code, changes are not visible until I stop and restart web server. I guess web server uses cached version of servlet.
    Can any body help me to solve this problem? It is matter of some setting issues in web server. But since I am novice, I don't know.........

    Some app servers have a "reloadable" attribute that can automatically detect changes in your servlet and reload your application for you. Not sure if all do though... but check through the docs on your app server and see if there's something similar. If not, you're probably stuck manually restarting.

  • Assigning roles to LDAP users through BIP API

    Hi.
    My customer has BIP 11g and OIM 9.1.0.2 running on the same weblogic server (11g). Both authenticate against the same LDAP server.
    One of our desired next steps is to provision from OIM the BIP roles to each LDAP user so every user gets the correct roles (and access to the correct reports) according to the groups he has on OIM.
    I've been searching for info regarding this without success. The BIP API doc does not show any info about assigning roles to users.
    We don't need to manage LDAP users, BIP roles, etc... through OIM. We only need to assign BIP roles to LDAP users.
    Is it possible to make that assignments through BIP API?
    If not, any other ideas? New ideas or different approaches are welcome.
    Thanks in advance.

    In OBIEE 11g which includes BIP the application roles are applied to LDAP users and groups using the Enterprise Manager Fusion Control.
    During the upgrade process from OBIEE 10g to OBIEE 11g the groups do get assigned to these roles transparently so there must be some API to leverage this functionality.
    I would start there, http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10541/admin_api.htm
    There are no specific instructions on accomplishing what you seek but if you have some WLST or Java Skills you should be able to get something prototyped.
    Let me know if that helps.

  • Can we restart fms server from flex?

    Hi,
    I wanted to know whether we can start,stop restart fms server using flex code(actionscript).I actually came across API's StartServer() and StopServer().Can I use this for the purpose.If yes can you please give a sample code so that I can better understand the functionality.

    HI ,
    Its not possible DI server restrat Through B1WS.
    Thanks
    kalpen

  • Have to restart Lion server every time I want to access it remotely

    L.S.,
    My Mac Mini Server (10.7.3) is colocated at a data center.
    At this point I have to restart Lion server every time I want to access it remotely for screen sharing over the internet.
    I can make the connection, so all the right ports are open, as the port scan also shows, but it just times out when I wish to connect again within the same server without rebooting.
    I bought Apple Remote Desktop but that doesn't help either. I can still connect through AFP, web and VPN.
    I do hope that someone can give me some more insight in this problem.
    Rebooting isn't a problem by the way...
    UPDATE:
    If I keep the session active overnight, there is no problem whatsoever, but when I log off as a "good practice", which I've learned using Windows, screen sharing will not work any longer. Forgetting about logging off seems to be a viable workaround at this point .
    regards,
    Mark

    Double post... https://discussions.apple.com/message/17729558#17729558

  • IPhone]Is there any API like PostMessage of MS?postNotificationName notwork

    I want to send message or event without waiting for the thread to process the message or event.
    I have used NSDistributedNotificationCenter,NSNotificationQueue,NSNotificationCenter,but
    NSDistributedNotificationCenter and NSNotificationQueue don't work,while NSNotificationCenter will be waitfing for processing the message.
    Any one could tell me which API to user? Thanks in advance!
    code for NSDistributedNotificationCenter as followings:
                   [[NSDistributedNotificationCenter defaultCenter] addObserver:self
                selector:@selector(finishWorkHandler:) name: @"BAIDU_GOOGE_BEST"
                 object: nil];
                 printf("try to send message\n");
                   NSMutableDictionary* info = [NSMutableDictionary dictionary];
                   [info setObject: @"pig" forKey: @"Pig"];
                   [[NSDistributedNotificationCenter defaultCenter] postNotificationName: @"BAIDU_GOOGE_BEST" object:nil  userInfo: info deliverImmediately: YES];
    -(void)finishWorkHandler:(NSNotification*)note
        NSLog(@"NSNotificationCenter name: %@", [note name]);
        NSLog(@"NSNotificationCenter object: %@", [note object]);
        // unregister
       // [[NSNotificationCenter defaultCenter] removeObserver:self];
    Message was edited by: coolhome

    Hi,
    I am making an stand-alone application that needs to
    connect to a database, create the necessary tables
    (if they are not already present ) and then add,
    remove update data from this database.Oracle DBAs will not appreciate your app attempting to create databases/entities.
    >
    The problem is that our customers may be using many
    different DBMS such as Oracle, MySQL or MS SQL
    Server. I don�t want to make them use any specific
    database so the application should adapt to the DBMS
    installed in the customer's system.
    Then performance must not be your goal at least in terms of data processing. Because attempting to process data off box versus on box with a database will, in the vast majority of cases, be magnitudes of order slower.
    My question is, is there any API or framework or
    something that would make the process of using
    different JDBC drivers invisible or easier for me to
    develop? Any advice would be welcomed.
    Hibernate will probably make it easy as long as your don't use any pass through SQL (and there goes performance again.)
    All of the databases you named have either free or very low cost devoper editions which you can use for testing. (Actually I think they are all free.)
    I would also like to know if there is any way to find
    out if a SQL statement will work properly in a set of
    different DBMSs.
    Not without testing.
    It is almost guaranteed that schema creations will not (like creating a table.)

  • Unable to restart MDM Server

    Hi All,
    I am using MDM SP4. We have a repository Z_ATLAS_MATERIAL_P_TST in SP4. Yesterday I tried to rename this repository but I was not aware that in SP4 we can't rename repository...it's a bug. So, when I renamed this repository to Z_ATLAS_MATERIAL_P_TST1 it gave me error "MDM Repository is invalid" and after 2-3 mins the console window get closed.
    Then I tried several times to mount that MDM server in new console session but everytime console gets terminated.
    But in the background MDM server and SQL server were running.
    Today, when I restarted the MDM server,it ran for 1-2 mins then it got terminated abrubtly.
    Can any one of please suggest what could be the reason and how to resolve it.
    Thanks,
    Varun

    Hi Varun,
    We also faced with such problem. First try to re install MDM Console client, even though if it doesnt start then try to restart your services through services.msc in the RUN. Restart your MDM server, Listeners and Database Services.
    Hope this solves your problem.
    Reward points if helpful.
    Prasad......

  • How to restart UCCX Server 8.0.2 SU4

    We have a HA UCCX cluster and I need restart the primary and backup.  Does anyone know where to go in the UCCX web interface to restart each of these or does it have to be done through the cli?

    Hi,
    For restarting the engine or any specific subsystem through web interface, please navigate to Cisco Unified CCX Serviceability->Tools ->Network services->Cisco Unified CCX Engine->Susystem Manager
    For restarting the enitre UCCX server, Login into your UCCX cli, type the command utils system restart
    First restart the Publisher (node1) and after it comes up restart the Subscriber (second node).
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/configuration/guide/uccx851cli.pdf
    Hope it helps.
    Anand
    Pls rate helpful posts !!

  • Any API from OLite for updating DM agent's settings

    Hi,
    Are there any APIs available as part from Oracle Lite for modifying the settings of the Device Manager Agent running on the devices. All I want to do is modify the frequency which the device polls for any updates and the frequency of pull. If there are APIs on the device itself or atleast configuring them from the server will also be good for the purpose.
    If anyone does know about it please throw some light on this.
    Aravind

    You can configure the settings to a known value before the installation happens.
    Login to mobileserver with administrator/password. Mobile Manager -&gt; Mobile Devices -&gt; Administration -&gt; Configuration Management -&gt; Select 'Device Manager' from drop down list -&gt; Show
    Go on and add the following N/V parameter
    FREQUENCY=NUMBER
    MAX_RETRY=NUMBER
    Else, you can make the changes after the installation is done.
    Send a 'Modify Configuration' command with the following 'SectionName/Key/Value' pair.
    DMC / FREQUENCY / NUMBER
    DMC / MAX_RETRY / NUMBER
    Then you need to restart your dmagent after those changes. Perhaps you can send an 'Update device management client' command as well.

Maybe you are looking for

  • FAQ: Can I open my Adobe Premiere Clip project in Adobe Premiere Pro?

    Yes. When you are ready to export your project to Premiere Pro, begin by tapping the share button in the upper right corner of your screen. Next, simply tap the Edit in Premiere Pro button. Within a few minutes, this will send your project and media

  • Office Web Apps 2013 - Excel, fine, Word & Powerpoint, unable to view.

    Hi All, I am having an infuriating issue where by the following occurs when opening documents via OWA: Excel - Preview, no problem, opening, no problem, editing, no problem (even when accessing oData connections for PWA). Word - Preview, errors, open

  • Sound blaster live with live drive XP install h

    Does anyone know how I can get my sound blaster li've platinium with li've dri've setup to work under XP? I have tried almost everything, ran the updated which I downloaded from this site and nothing. The li've dri've unit gets no sound out of the he

  • The plotted data on the graph disappear when clearing graphs!??

    Hi folks I got this vi, with two graphs, and one chart. I got this chart coz i want the data plots to strip in the graphs. but when the VI runs, and i pres stop and run again, the data plot disappears, they are then beeing plotted in the back ground

  • Db triggers

    Hi, This might be a very basic concept, but does the txn that initiated the trigger (due to DML on the base table) waits for the trigger to complete ? Since commits are not allowed inside a trigger, I am assuming that DMLs made by triggers are commit