Shutdown time controlled

Hello guys,
so far I shutdown my machine via shutdown -h +time when I want to terminate it time controlled. But often there are still some programs running like firefox. Is there any program-friendly method to shutdown?
shutdown -h kills all apps instantly without terminating them correctly.
Best regards

From the man page,
shutdown  brings  the  system down in a secure way.  All logged-in
       users are notified that the system is going down, and login(1)  is
       blocked.   It  is  possible to shut the system down immediately or
       after a specified delay.  All processes are  first  notified  that
       the  system  is going down by the signal SIGTERM.  This gives pro‐
       grams like vi(1) the time to save the file being edited, mail  and
       news  processing programs a chance to exit cleanly, etc

Similar Messages

  • Problem: shutdown time proportional to runtime

    Hello Experts,
    I am developing a fairly large application using multiple queued state-machines as the fundamental architecture.
    I have noticed that the shutdown time of the application, i.e. in the IDE after the final VI terminates there is a noticeable delay before the VI returns to edit mode.
    The odd thing is that it is proportional to the length of time the main VI has been running.
    My first thoughts were an unbounded array growing (and then being released) but the memory usage of the application is rock solid.
    Then I thought, it could be a reference opened somewhere and not closed, but I am not really doing this at all in my application. I am using control references a lot, but you dont need to manually close these do you?
    I cannot think of anything else which would be "building up" inside the application as it runs. All the queues are sensible sizes, and the final VI actually closes in good time, its the delay after this that is troubling me...
    I do not have any custom DLLs in the application, and only one activeX control (which I am going to try and disable now to see if this helps)
    Any ideas?
    nrp
    CLA

    Hi Rob, thanks for your suggestions.
    I eventually sussed it though, in a place I would not have expected...
    I coded a routine to defer front panel updates when doing lots of graphical changes. The VI takes a control reference as an input (any control on the front panel to be deferred) and from this it determines the owning VI and from this it can get a reference to the panel. It seems that these references never get closed, and as I was calling this function many times it was creating new (and different) references to the panel each time. The memory usage increased ever so slightly over time (I had not noticed this before).
    When the app finally closed I suppose all these references got cleaned up, and this was what was taking a proportional length of time.
    The solution was to use a more sophisticated routine (not terribly clever though) that only derives the reference once, and then stores it in a feedback node for each other time the VI is called.
    nrp
    CLA

  • How can I design a time controlled applicatio​n

    I want to build a time controlled VI which can provide chemical actions e.g. to open or close valves etc. The duration of the actions, the steps are written down in a spreadsheet e.g. from 0...1 min open valve A, from 1...10 min open valve B etc. The user should have the possibility to pause the run and resume at the same point. Can someone help me to find the most effective way to solve this problem? Thanks Ruediger (I use LV 6.0 on NT4)

    I have a simple example that I had been working on. I made a couple modifications based on what you described. Check this out and see if it helps.
    Attachments:
    tank_fill.zip ‏20 KB

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • Time controlled processing

    Hello All.
    My process consists in creating a text file contaning information of many idoc generated on R3 side.
    I know SAP R3 can send idoc in packs but I don't want my messages to be too big => Thus, Idoc Pack size won't be higher than 100.
    Every day, I will send my packs of idoc to XI in order to create the outbound file.
    With one pack of Idoc no pb but how can I do to create only one file when I would have more than one pack
    I want to know if it is possible without using BPM to build one file at a determined,scheduled moment with all received and not already processed idocs and how ?
    I found in documentations the possibility to maintain filters for time controlled processing (SXMB_ADM).
    Do someone have links about it or explain me the global steps to do what I want.
    Thanks very much

    hi,
    I'm not sure if you understood it correctly
    IDOC packects from R3 are not received as packets in XI
    they are received as one by one...
    so you need a BPM to collect them (to any number you want) anyway
    and BPM gives you many possibilities of telling
    when to stop and then when to create the file...
    Regards,
    michal

  • Boot and shutdown time is much slower

    Running a MB Pro with 4gb of RAM. The boot and shutdown times are considerably slower. Any ideas?

    Do you have the machine set to auto-login? Or does it boot to the login window? If it is set to auto-login, how long does the machine take to get to the blue screen? How much longer does it take to get from the blue screen to active desktop?
    How long does it take to shut down? What applications are running when you shut down the machine?

  • SharePoint 2013 RSS Viewer not loading when other Custom web part using Update Panel or Ajax Timer control

    Hi,
    SharePoint 2013 RSS
    Viewer web part failing to complete loading when the page loads.
    This happens when having RSS Viewer and then adding a Custom webpart with an updatepanel and timer control.
    I  had used Ajax update panel and timer control to load the web part asynchronously after the main page is fully loaded.
    The RSS-Viewer web part hangs in loading state while the custom webpart loads just fine.
    The issue occurs when an like button click or Timer Tick event fires after the page
    is loaded.
    Haven't been able to track the issue.
    Couple of workaround I tried to call a server side button click event from the custom web part after the page gets fully loaded using JQuery shown below did not work out either.
     $(document).ready(function () {
                $('#<%= netButton2.ClientID %>').click();
    And 
    document.onreadystatechange = function () {
                if (document.readyState == "complete") {
                    $('#<%= netButton2.ClientID %>').click();
    Please let me know how to resolve this issue.
    Thanks,
    Franklin

    Hi Johan,
    The assignment of this user on the given task might be corrupted. Try to remove the resource from the task, publish the project, assign the resource again and publish again the project. If it is not working, try to unpublish the task (column "publish")
    and publih it again.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Suddenly mac shutdown time increased!!!!

    Hi,
    I have a mac book pro (Retina) and suddenly the shutdown time has been increased. Whats the problem??
    1st it use to shutdown in 2-4 sec but now it takes more than 30-40 sec & sometime even more than tht!!!
    How can i resolve this issue??
    Thanks
    Amar

    I have exactly the same issue with both my late 2011 Macbook Pro with SSD and my new 11" Macbook Air since upgrading to Mountain Lion. Takes around 30secs to shutdown whereas previously 2 second shutdown - very frustrating when using the machines on the move and in a hurry which was one reason I chose SSD drives in the first place.

  • Date and time control panel crashing

    why is date and time control panel crashing?

    I haven't noticed that in iCal. I don't normally use a 24 hour clock.
    Glad to help on the other, though.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Using multiple charts but one time control

    I would like to place two charts on the same web page.  One above the other.  The top chart will have the time refresh control on it while the other should be controlled by the first chart.  I have recently taken two charts and controlled each of them by using an iBrowser.  How do I get the time features to sync up with the other chart?

    In chart #2, turn off the "Show Time Control" checkbox in the display template.
    In the update event from chart 1, set the startdate/enddate of chart 2 to the startdate/enddate of chart 1, and call the updateChart(true) method of chart 2.
    Pseudocode (might be a few typos):
    chart2.getQueryTemplate().setStartDate(chart1.getQueryTemplate().getStartDate());
    chart2.getQueryTemplate().setEndDate(chart1.getQueryTemplate().getEndDate());
    chart2.updateChart(true);
    Best regards,
    Rick

  • Time controlled Loop faster than 1ms

    HI
    I work with Labview 8.2.1.
    I need a time controlled loop who is faster than 1ms. I tried to use the 1MHZ time source (see picture) but the loop does not work with this.
    Please help
    Message Edited by SteffenGrab on 11-30-2007 01:13 PM
    Message Edited by SteffenGrab on 11-30-2007 01:17 PM
    Attachments:
    Time loop.JPG ‏66 KB

    There is no picture to see...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Time Controlled digital line PXI-6251

    Hi,
    I need to create a time controlled boolean.
    For example a digital line is set to False. I'd like to change to True status for a certain amount of time (e.g. 150ms).
    Is it possible with PXI 6251?
    Thanks

    Hi,
    yes you can. Set a buffered digital output task like "Digital - Finit Output.vi" example.
    You can use an external clock, generate it throught counter output or use ananog in/out sample clock.

  • Time Controlled Loop?

    I am building an application that scrolls through an panoraminc photo to make it appear as if its rotating 360 degrees.
    So far i can get the image to scroll left and right continously by having a left and right button to click on
    what i am after is some ideas/direction on how i could automate the process, as in when you click the left button the image will scroll at a certain speed.
    I was thinking that i would need a time controlled loop where the the method for scrolling the image to the left occurs every few seconds.
    Thanks in advanced

    Use a inner class that extends Thread as follow:
    class MyTimer extends Thread{
    boolean continue=true;
    public void stopScroll(){
    continue=false;
    public void run(){
    while(continue){
    try{
    xpos=pictureScroll(img, xpos, "right");
    sleep(100);
    }catch(InterrupdedException e){
    }use
    Thread t=new MyTimer ();
    t.start();to start scroll, and to stop
    t.stopScroll();in button's ActionPerformed

  • Real time control application

    I am going to use NI PXI-6070E for real-time control application, can someone provide sample programme for me?
    Thanks a million!

    Many examples can be found in the LabVIEW Example finder (Help->Example finder), in the ...Programme\National Instruments\LabVIEW 7.1\examples directory or on ni.com, e.g. here are some RT examples:
    http://zone.ni.com/devzone/devzone.nsf/webproducts/c25f8c664230613a862567df006abb06?opendocument
    The 6070 is only a multifunction DAQ card, you still need a RT controller, e.g. the 8187:
    http://sine.ni.com/apps/we/nioc.vp?cid=13981〈=US
    Kai Kratt

  • Very long shutdown time after Yosemite install

    After installing Yosemite my Macbookpro has shutdown times of over more than 5 minutes. This is what i got from Etrecheck.
    Problem description:
    very long shutdown time after yosemite install
    EtreCheck version: 2.1.8 (121)
    Report generated 19 Feb 2015 01:19:39 CET
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Early 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,2
        1 2 GHz Intel Core i7 CPU: 4-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 868
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
        AMD Radeon HD 6490M - VRAM: 256 MB
            Color LCD 1440 x 900
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: one day 7:40:33
    Disk Information: ℹ️
        Hitachi HTS545050B9A302 disk0 : (500,11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 498.88 GB (90.86 GB free)
                Core Storage: disk0s2 499.25 GB Online
        MATSHITADVD-R   UJ-898
    USB Information: ℹ️
        Apple Computer, Inc. IR Receiver
        Apple Inc. FaceTime HD Camera (Built-in)
        LaCie LaCie Device 500,11 GB
            EFI (disk2s1) <not mounted> : 210 MB
            MINI DAVID HDD (disk2s2) /Volumes/MINI DAVID HDD : 499.76 GB (62.48 GB free)
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/sysctl.conf - Exists
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Karabiner.app
        [not loaded]    org.pqrs.driver.Karabiner (10.2.0 - SDK 10.9) [Click for support]
            /Library/Parallels/Parallels Service.app
        [not loaded]    com.parallels.kext.prl_hid_hook (7.0 15106.786747) [Click for support]
        [not loaded]    com.parallels.kext.prl_hypervisor (7.0 15106.786747) [Click for support]
        [not loaded]    com.parallels.kext.prl_netbridge (7.0 15106.786747) [Click for support]
        [not loaded]    com.parallels.kext.prl_usb_connect (7.0 15106.786747) [Click for support]
        [not loaded]    com.parallels.kext.prl_vnic (7.0 15106.786747) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.Avid.driver.AvidDX (4.7.1) [Click for support]
        [loaded]    com.Cycling74.driver.Soundflower (1.5.1) [Click for support]
        [not loaded]    com.SafeNet.driver.Sentinel (7.3.0) [Click for support]
        [not loaded]    com.avid.driver.Avid_SCSI (1.2.0) [Click for support]
        [not loaded]    com.avid.driver.Avid_SCSI_RBC (1.2.0) [Click for support]
        [loaded]    com.cisco.kext.acsock (1.1.0 - SDK 10.2) [Click for support]
        [not loaded]    com.digidesign.fwfamily.driver (8.0.4f1) [Click for support]
        [not loaded]    com.digidesign.mbox2.boot.driver (8.0.4f1) [Click for support]
        [not loaded]    com.digidesign.mbox2.driver (8.0.4f1) [Click for support]
        [not loaded]    com.freecom.driver.BoulderScsi (1.0.0d1) [Click for support]
        [not loaded]    com.metakine.handsoff.driver (2.0.8 - SDK 10.6) [Click for support]
        [not loaded]    com.nvidia.CUDA (1.1.0) [Click for support]
        [not loaded]    com.paceap.kext.PACESupport (5.7.2b8) [Click for support]
        [not loaded]    com.paceap.kext.PACESupport2 (5.7.2b8) [Click for support]
        [not loaded]    com.paceap.kext.pacesupport.master (5.7.2b8) [Click for support]
        [loaded]    com.rogueamoeba.HermesAudio (3.0.1) [Click for support]
        [not loaded]    com.sony.filesystems.pdudf (4.03.0d006 - SDK 10.6) [Click for support]
        [not loaded]    com.sony.filesystems.pdudfr (4.03.0d006 - SDK 10.6) [Click for support]
        [not loaded]    com.sony.scsi.PDW-U1 (4.03.0d006 - SDK 10.6) [Click for support]
        [not loaded]    com.wacom.kext.pentablet (5.3.5 - SDK 10.9) [Click for support]
            /System/Library/Extensions/PACESupportFamily.kext/Contents/PlugIns
        [not loaded]    com.paceap.kext.pacesupport.leopard (5.7.2b8) [Click for support]
        [not loaded]    com.paceap.kext.pacesupport.panther (5.7.2b8) [Click for support]
        [loaded]    com.paceap.kext.pacesupport.snowleopard (5.7.2b8) [Click for support]
        [not loaded]    com.paceap.kext.pacesupport.tiger (5.7.2b8) [Click for support]
    Startup Items: ℹ️
        ciscod: Path: /System/Library/StartupItems/ciscod
        CUDA: Path: /System/Library/StartupItems/CUDA
        Digidesign Mbox 2: Path: /Library/StartupItems/Digidesign Mbox 2
        DigidesignLoader: Path: /Library/StartupItems/DigidesignLoader
        PACESupport: Path: /Library/StartupItems/PACESupport
        ProTecVb: Path: /Library/StartupItems/ProTecVb
        Startup items are obsolete in OS X Yosemite
    Problem System Launch Daemons: ℹ️
        [unknown]    c om.apple.coreservices.appleevents.plist [Click for support]
        [unknown]    c om.apple.diskarbitrationd.plist [Click for support]
        [unknown]    c om.apple.mDNSResponder.plist [Click for support]
        [unknown]    co m.apple.securityd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.cisco.anyconnect.gui.plist [Click for support]
        [running]    com.epson.epw.agent.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.metakine.handsoff.agent.plist [Click for support]
        [loaded]    com.nvidia.CUDASoftwareUpdate.plist [Click for support]
        [failed]    com.parallels.desktop.launch.plist [Click for support]
        [loaded]    com.parallels.DesktopControlAgent.plist [Click for support]
        [running]    com.parallels.vm.prl_pcproxy.plist [Click for support]
        [running]    com.wacom.pentablet.plist [Click for support]
        [running]    net.culater.SIMBL.Agent.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [failed]    com.autodesk.backburner_manager.plist [Click for support]
        [running]    com.autodesk.backburner_server.plist [Click for support]
        [failed]    com.autodesk.backburner_start.plist [Click for support]
        [running]    com.cisco.anyconnect.vpnagentd.plist [Click for support]
        [running]    com.digidesign.fwfamily.helper.plist [Click for support]
        [running]    com.edb.launchd.postgresql-8.4.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [running]    com.metakine.handsoff.daemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [running]    com.parallels.desktop.launchdaemon.plist [Click for support]
        [loaded]    com.rogueamoeba.hermes.plist [Click for support]
        [loaded]    com.rogueamoeba.instanton-agent.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
        [loaded]    PACESupport.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
    User Login Items: ℹ️
        Google Chrome    Application Hidden (/Applications/Google Chrome.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Google Earth Web Plug-in: Version: 7.0 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 2.3.8.1 [Click for support]
        WacomTabletPlugin: Version: WacomTabletPlugin 2.1.0.6 - SDK 10.9 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        SharePointBrowserPlugin: Version: 14.3.8 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0
        JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
    User internet Plug-ins: ℹ️
        Picasa: Version: 1.0 - SDK 10.4 [Click for support]
    Audio Plug-ins: ℹ️
        DVCPROHDAudio: Version: 1.3.2
    3rd Party Preference Panes: ℹ️
        CUDA Preferences  [Click for support]
        DigidesignMbox2  [Click for support]
        Digidesign Mbox 2 Pro  [Click for support]
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        MacFUSE  [Click for support]
        Perian  [Click for support]
        PenTablet  [Click for support]
        XDCAM Drive Monitor  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 498.88 GB Disk used: 408.02 GB
        Destinations:
            Time Capsule [Local]
            Total size: 799.52 GB
            Total number of backups: 18
            Oldest backup: 2014-11-12 02:44:18 +0000
            Last backup: 2015-02-17 14:14:45 +0000
            Size of backup disk: Too small
                Backup size 799.52 GB < (Disk used 408.02 GB X 3)
    Top Processes by CPU: ℹ️
            20%    mds
             5%    WindowServer
             2%    Google Chrome
             1%    launchd
             1%    prl_disp_service
    Top Processes by Memory: ℹ️
        515 MB    Final Cut Pro
        378 MB    softwareupdated
        309 MB    Google Chrome
        215 MB    Google Chrome Helper
        206 MB    mds_stores
    Virtual Memory Information: ℹ️
        220 MB    Free RAM
        3.56 GB    Active RAM
        3.34 GB    Inactive RAM
        1.45 GB    Wired RAM
        7.56 GB    Page-ins
        4 MB    Page-outs
    Diagnostics Information: ℹ️
        Feb 18, 2015, 04:35:18 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Last.fm Scrobbler_2015-02-18-163518_[redacted].crash
        Feb 18, 2015, 04:29:01 PM    /Library/Logs/DiagnosticReports/backburnerManager_2015-02-18-162901_[redacted]. crash
        Feb 18, 2015, 04:11:30 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Last.fm Scrobbler_2015-02-18-161130_[redacted].crash
        Feb 18, 2015, 04:04:44 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Last.fm Scrobbler_2015-02-18-160444_[redacted].crash
        Feb 18, 2015, 01:49:37 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/Last.fm Scrobbler_2015-02-18-134937_[redacted].crash
        Feb 17, 2015, 05:36:32 PM    Self test - passed

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Shut down from safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for