Scheduled shutdowns issue

Under Yosemite, automatic shut downs scheduled in the Energy Saver System Preference no longer work when the Mac is at the login screen.
According to the following support document, this appears to be a 'feature' rather than a bug:
https://support.apple.com/kb/PH18583?locale=en_US
In all prior versions of the Mac OS through Mavericks, scheduled shut downs are honored whether or not any user is logged in.
This new restriction in Yosemite is problematic: at my offices there are many shared desktop Macs (iMacs and Mac minis) with scheduled start ups and shut downs. When no one is actively using the stations, they are (or should be) at the login screen.
Asking people to remain logged in when done with these stations, so that the scheduled shutdowns would work, would have unwelcome consequences, such as: open applications preventing shut down, and other users not able to log in during the day because they could not unlock the screen saver for the previous still-logged-in user.
The scheduled start ups (if I've manually shut down the Mac) still work as expected. But these scheduled shut downs not being honored when no one is logged in is a big issue, which will probably prevent me from upgrading shared Macs beyond Mavericks because I don't want them to remain on 24/7/365. I have already submitted feedback to Apple on this issue.
Has anyone found a way to get scheduled shutdowns to work under Yosemite when no user is logged in?

Does cron still work? It's brutal but you could setup a shell script to be triggered from cron (or use shutdown directly).
Take a look at the shutdown manual.
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man8/shutdown.8.html
0 20 * * * /sbin/shutdown now
If that was in roots crontab it should stop them at 8pm, this is untested, I'm away from 10.10 at the moment. You may need to ensure the machine is awake, I think cron will not wake the OS for jobs.
launchd may be another option, but I'm still unsure if the OS wakes to run scheduled jobs.
Ideally you would clean up any unsaved work & logout active users, or bail out if there is an active login, hence the shell script to handle some logic.

Similar Messages

  • Scheduling shutdown

    i want to schedule shutdown of database.
    i have tried 2 methods-
    1st-->
    shut.bat
    set oracle_sid=anmreco
    sqlplus "/ as sysdba"
    @"C:\Documents and Settings\hp\Desktop\shut.sql"
    shut.sql-->
    shutdown immediate;
    2nd -->
    shut2.bat
    set oracle_sid=anmreco
    sqlplus "/ as sysdba"
    shutdown immediate;
    however both the methods only gets me connected to oracle as sysdba. The shutdown immediate does not seem to execute.
    Whats the problem?
    Thanks
    Anmol

    Hi Anmol,
    The Scheduler typically clears out variables before running an executable so you would also have to set ORACLE_HOME and specify the full path to sqlplus.
    Also in your job you cannot point to a Windows batch script directly you have to call it like
    cmd.exe
    /q
    /c
    script.bat
    If you are running on a 10.1 database you should make sure your scripts produce no output to avoid running into a known issue on this release. You should redirect output (e.g. from sqlplus) to a log file. This will also help you diagnose what is going on.
    Hope this helps,
    Ravi.

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • Scheduled shutdown no longer works in Keynote 4.0 iLife 08

    Those of us using Keynote, a large LED monitor and a Mac Mini as a Digital signage system have found that the new Keynote 4.0 in iLife 08 will not allow a scheduled shutdown. This worked well under the old version.
    We had been on iLife 06 and 10.4.9. We found that Keynote crashes every few days when you try and run a show 24/7 so we had used the energy saver settings to have it shut down at 1AM and restart at 2AM. This was working well, the only trick was to always name the current slide show the same thing and have Keynote auto launch at startup and run the slideshow.
    Last week we reimaged a Mini with 10.4.10 and iLife 08 and put in place of the 10.4.9 ilife 06 mini, the first time it was suppose to shutdown it hung, there was an error on the screen that said "Keynote had canceled shutdown".
    Testing proved the following:
    Schedule shutdown does not work at all when a Keynote presentation is running. You get this error.
    "The application Keynote canceled shutdown. To try again quit Keynote and choose shut down from the Apple menu"
    It will auto shutdown and startup IF a Keynote slide show is NOT running.
    It will do a scheduled shutdown if just the Keynote App is running.
    If the Keynote app is running a normal shutdown command will work.
    Does anyone know a work around or a fix?

    The thread "Keynote Cancelled Shutdown: how do I troubleshoot?" has recently posted a possible solution but is there an explanation or a fix planned?

  • Mavericks Scheduled Shutdown not working

    Since upgrading to Mavericks 10.9.2 , about 2 weeks ago, (from Snow Leopard 10.6.8) unable to get Energy Saver / "Scheduled Shutdown" working.
    Scheduled Startup works without any problems, everyday at selected time, my iMac boots up; but when I have a time set for "shutdown" it just goes to sleep.  Never had this problem with Snow Leopard 10.6.8 - always worked on schedule everyday.  Tried not selecting both Startup and Shutdown, and doing it manually; but whenever I go back to set the Startup and Shutdown, it never works in Shutdown.   Any help on how to solve this, would be appreciated.
    Running iMac 21" 16GB RAM, Ma

    I think I spoke too soon, about Scheduled Shutdown working OK.  It does not work when Mac is in "Sleep Mode"...I tried it again this morning, set a schedule time for shutdown, 10 minutes out from present time.
    Did not allow screen or computer to go into sleep mode, and guess what ?  Up pops the scheduled shutdown screen, saying this computer will shut down in 10 minutes. OK that worked.   I then changed the shutdown schedule again, for a later time, now I allowed the Display and Computer to go into Sleep mode, per settings I have in System Preferences/Energy Saver -> "Display Sleeps in 10 Minutes - Computer sleep in 15 minutes. I returned 40 minutes later, -- Computer and Display are in Sleep mode, return key to bring screen back up,---- and Scheduled Shutdown was not activated.  Have no background programs running that causing errors in Console.  Therefore there is a software flaw somewhere, that will not allow "Schedule Sutdown" to activate when computer is in sleep mode.   Any suggestions on how to correct this would be appreciated.
    Winston

  • Macbook pro shutdown issue

    Macbook pro shutdown issue when I push the power button it immediately goes into sleep mode

    Hello Marrio22,
    Thank you for the question.  With OS X Mavericks, the power button has new functionality:
    OS X Mavericks updates the power button behavior on Mac computers. 
    Using the Power Button to Sleep & Wake
    Tap the power button in Mavericks to put your Mac to sleep or to wake it up:
    Tap the power button once to put your Mac to sleep.
    Tap the power button again to wake your Mac.
    Press the power button for less than a half a second to sleep or wake your Mac. This duration is similar to pressing the Space bar or Return key to wake your Mac. The power button works this way across all Macs using OS X Mavericks, including both notebook and desktop computers.
    Accessing the Shut Down Dialog
    Press and hold the power button for 1.5 seconds, to bring up additional options:
    Forcing the Mac to Turn Off
    Hold down the power button for 5 seconds to force the computer to turn off. Important: You may lose unsaved documents if you force the computer to turn off this way. Use this method of turning off your Mac only if it has become unresponsive for an extended period of time. Normally you should shut down the computer by selecting Shut Down from the Apple menu, or from the shut down dialog pictured above.
    OS X Mavericks: Using the power button
    http://support.apple.com/kb/HT5869
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Scheduled shutdown immediate and full database export

    Hi all,
    The database is Oracle 10g.
    How to make a scheduled shutdown immediate and full database export ? I want to use a batch file for it so I can make a sheduled task from the windows control panel everyday at 2 am. So what to write in the batch file because I am a bit new to 10g ?
    Thank you very much

    >
    How to make a scheduled shutdown immediate and full database export ? I want to use a batch file for it so I can make a sheduled task from the windows control panel everyday at 2 am. So what to write in the batch file because I am a bit new to 10g ?No, you can't take logical backup after shutdown database.
    If you want to schedule the logical backup of your database, just you can refer from here
    Schema level
    http://mohamedazar.wordpress.com/2010/04/18/datapump-scheduler-for-schema-level/
    Full export
    http://mohamedazar.wordpress.com/2010/02/16/dbms-scheduler-for-data-pump/

  • Can we make a sticky for the RAID shutdown issue?

    Hi guys - I'm new to the forum...
    I'm experiencing the hanging shutdown issue with my K8N Neo4 Platinum board and SATA Raid 0 in XP.   I've searched the forum for answers, but think it would be a good idea if someone made a sticky of this as its a popular problem.
    If not - has anyone got a final fix?
    I've got version 1.B bios with 6.70 nVidia drivers - still no joy!

    I have two k8n neo 4 platinums that are doing the same thing.
    I installed a clean drive & a basic windows install (no dedicated drivers) & flashed  the bios to 1.c. Same issues. Msi says it is a hardware compatability issue , I say BS!
    After speaking with Nvidia they supplied newer driverd than the 6.70. The problem went away. However these drivers are not stable. I am having other issues. And am still working with Nvidia to solve them.

  • Scheduled shutdown when another user is logged in

    I like my Mac to shut itself down each evening at 9pm and then switch on at 8.30am - which is easy to set within Energy Saver.
    However, if I have another user account open (which I often has), the computer will not shutdown unless an Administer's name and password is entered. This means that I have to be there to do this - which negates the reason for having a scheduled shutdown.
    I know that no data will be lost if the other account is closed down, so is there any way around this?
    Thanks
    Phil

    Not that I am aware of. Data could be lost if someone is in the middle of work and the Mac shuts down without giving the user and opportunity to save the work.
    Why do you want to do this? Why not just leave the Mac on all the time? Are you trying to force your kids off the Mac at a predetermined time?

  • Scheduled Shutdown

    Since installing 10.5.2 on my G4 mac the scheduled shutdown does not happen. If I shut the computer down manually I have no problems with scheduled startup. I have not other problems with the machine and no problems with normal shutdowns.

    how can i create a system agent who force shutdown? i try this software (launchd manage)
    http://macupdate.com/info.php/id/19879 but is not user friendly.
    editing crontab is completely useless under os x 10.4
    ideas?

  • Scheduled shutdowns

    I have my MBP and iMac set up to shutdown every weekday (my GF likes to leave them on!!) but if they are already shutdown they start up just before their scheduled shutdown time and then shut themselves down, is this a common problem with Leopard? I don't see the point in starting up to shut down if it's already shutdown.
    Does anyone know if there's a fix to this (apart from removing the scheduled shutdown)? Does anyone else have the same problem?

    Try trashing the Power Management preferences, restart and reset them to how you like.
    You can find the file here:
    Hard drive/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

  • Power Saving & Scheduled Shutdown

    I work in a computer lab at a grammar school... it's a small room but we have 15 eMacs squeezed in, and they generate a lot of heat. I've tried putting the machines on a schedule to start up at 9 am on weekdays, and shut down at 6:30 pm every day, but invariably, they're asleep at 6:30, and so the shutdown never happens. I set them to never go to sleep, too, but it doesn't seem to stick. We're running 10.3.9 on most of these. This sound familiar to anyone?

    Hi,
    You can create a scheduled task using group policy preferences to initiate shutdown.
    Checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/en-US/c01687ff-d42d-4e32-9305-6ba3802b68b0/how-to-schedule-shutdown-task-by-group-policy-?forum=winserverGP
    FYI
    The file path for the executable to initiate shutdown, restart, logoff, hibernate -
    c:\windows\system32\shutdown.exe
    Command for,
    Shutdown - shutdown -f -s
    Restart     - shutdown -f -r
    Logoff       - shutdown -f -l
    Hibernate - shutdown -f -h
    Regards,
    Gopi
    JiJi
    Technologies

  • Schedule Shutdown that Cannot be Canceled?

    Would like to schedule a shutdown that cannot be canceled (except by Admin user obviously). So I can force my teenager off the computer at bedtime! Normal scheduled shutdown can be canceled by anyone.
    Would be happy to pay for a 3rd party utility that permits this if needed.
    Thanks

    One idea: if your teen connects through a router, you often can configure the router to allow Internet access only at certain times.
    Or, set up a separate, non-Admin user account for your teen's use.
    Also, from OS X Help:
    To set time limits on computer use:
    Choose Apple menu > System Preferences and click Parental Controls.
    Open Parental Controls preferences
    Click the lock icon to unlock it, and then enter an administrator name and password.
    Select the account you want to limit, and then click Time Limits.
    To set a maximum amount of time that the computer can be used during the week (Monday through Friday), select the “Limit computer use to” checkbox under “Weekday time limits,” and then drag the slider to adjust the number of hours per day the computer can be used.
    To set a maximum amount of time that the computer can be used during the weekend, select the “Limit computer use to” checkbox under“Weekend time limits,” and then drag the slider to adjust the number of hours per day the computer can be used.
    To restrict computer use on evenings prior to a weekday (Sunday night through Thursday night), select the “School nights” checkbox under Bedtime and then use the up and down arrows to specify the time during which computer use is blocked.
    To restrict computer use on Friday night and Saturday night, select the Weekend checkbox under Bedtime and then use the up and down arrows to specify the time during which computer use is blocked.
    Message was edited by: inandoutofgrace

  • Scheduled shutdown and power settings

    I have set up a policy to shut down all domain computers at 1900 every day with Task Scheduler via GPO, but there is still something that I need to configure.
    Working hours of the company that I work for, are from 0800 to 1700, but there are still employees that remain after working hours to finish their daily tasks. Many time it happens that the any computer won't be used at all, but they just do not shut it
    down.
    I would like to set a policy which would apply after 1700 to send the computers to sleep mode after 30 minutes of inactivity and then shut down the computers that have been on sleep mode for more then 15 minutes. So they do not have to wait till 1900 to
    shut down.
    Thanks

    Hi,
    You can create a scheduled task using group policy preferences to initiate shutdown.
    Checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/en-US/c01687ff-d42d-4e32-9305-6ba3802b68b0/how-to-schedule-shutdown-task-by-group-policy-?forum=winserverGP
    FYI
    The file path for the executable to initiate shutdown, restart, logoff, hibernate -
    c:\windows\system32\shutdown.exe
    Command for,
    Shutdown - shutdown -f -s
    Restart     - shutdown -f -r
    Logoff       - shutdown -f -l
    Hibernate - shutdown -f -h
    Regards,
    Gopi
    JiJi
    Technologies

  • Schedule lines Issue

    Dear All,
    We are using Scheduling agreements process.
    In this, the transfer of requirements is activated from the sched.lines to PP (t-code MD04) . So the system works accordingly. Now we dont want to carry forward the last months schedule line's balance qty to the new month. say,
    In a Sched.agreement, shedule lines
    01.06.2011 order qty 500....  delivered 200 qty
    01.07.2011 order qty 1000
    01.08.2011 order qty 600
    In June2011, 200 qty had been partially delivered. So business doesn't want to carry this balance 300 qty to production. Hence we assign schedling cat. CN on next month say on 1st of July'11 instead of CP for the June'11 sched.line.
    Here the balace 300 qty is been deducted from the order qty of July'11, so in MD04 for the month of July system shows only 700 qty (1000-300=700) which is wrong.
    1000 should be the production qty for the month of July'11 and June's shed.line should not reflect in Md04. . How to solve this delivered qty dedcting from the next month's requirement. Pls guide.
    P.S : however the 01.08.2011 does not have nay problem. It is getting reflected in MD04 as 600qty.
    Thanks,
    Reg,
    JJ
    Edited by: Jagsap on Jul 5, 2011 11:08 AM

    same issue we are facing. please tell me how to solve it.
    I have created Sales Order (Number 1032) with following scenario and posted one goods issuance against first delivery with less quantity.
    Sales Order Item
    Item               Item Desc                            Order  Quantity
    10                 High Speed Diesel (HSD)      5000
    Schedule Lines
    Line: 10
    Delivery Date: 07.07.2011
    Order Quantity: 1000
    Rounded Qty: 1000
    Confirmed Qty:1000
    Delivered Qty: 9500
    Line: 20
    Delivery Date: 07.07.2011
    Order Quantity: 1000
    Rounded Qty: 1000
    Confirmed Qty:1000
    Delivered Qty: 0
    Line: 30
    Delivery Date: 07.07.2011
    Order Quantity: 2000
    Rounded Qty: 2000
    Confirmed Qty:2000
    Delivered Qty: 0
    Now when i goto VL01N and execute delivery on 08.07.2011 with reference to Sales Order system sum-up the previous quantity + 2nd schedule line quantity means (1500). But our requirement is that it should only propose the order qty of current scheduling lines date instead of previous + current date quantities..

Maybe you are looking for

  • After updating to Yosemite brush stops / lags

    After updating to Yosemite whenever I am using brush or the eraser tool it stops or lags (I am not sure what to call it). What happens is I can't hit any other shortcuts keys like "[ ]" for increasing the brush size and even changing tools like press

  • Split XML File

    I have a large xml file which i would like to split based on name of element and number of elements, so if i have 100000 <ELEMENT_A></ELEMENT_A> (as well as other elements) in file i want to generate 10 new files with 10000 elements each (only the EL

  • I deleted a large file, emptied trash but recovered no space

    I needed to restore a large file (about 70 Gb) from Time Capsule to my MBP but had only 36 Gb available.  I deleted a 70 Gb file from the MBP but the free space available did not increase after I deleted the file (and emptied Trash).  Any suggestions

  • Como ago para descargar fotos que fueron subidas desde pc a iphone y ahora necesito bajarlas del iphone al pc

    como ago para descargar fotos que fueron subidas desde pc a iphone y ahora necesito bajarlas del iphone al ?????????

  • Instructions to migrate from 3Gs to 4 phone

    Ok, this is my first foray into phone migration for upgrade. I currently have the 3Gs and regularly sync with iTunes. I plan on upgrading my 3Gs to iOS4 today and should receive my new i4 on 24th. Is the new activation and migration of phone data (co