Clear tty1 before shutdown?

Hey guys,
I start xorg on vt5 and leave a getty running on vt1.
During shutdown the terminal isn't cleared, so the first systemd shutdown message is printed just after the "hostname login: " getty prompt.
Is there a way to have the tty cleared before the shutdown messages are printed?

Is it possible to clear the JPanel before repainting? Yes, that is the default behaviour of JPanel (and all Swing components that are opaque).
You must have strange code if it isn't painting correctly.
If you need further help then you need to create a <b>Short, Self Contained, Compilable and Executable, Example Program</b> (SSCCE) that demonstrates the incorrect behaviour.
see http://homepage1.nifty.com/algafield/sscce.html
Don't forget to use the <b>Code Formatting Tags</b> so the posted code retains its original formatting.
see http://forum.java.sun.com/help.jspa?sec=formatting

Similar Messages

  • Registry writing right before shutdown fails

    Hi,
    In my NDIS driver code I am trying to write a parameter to the registry (using NdisWriteConfiguration and then I call NdisCloseConfiguration). Usually it works fine, but when I do that just before shutdown the registry is not updated. Can you please help?
    Thanks.

    At some point during shutdown, the registry unmounts itself.  This is normal.  During an orderly shutdown, the registry flushes its caches, clears the in-use flag, closes the registry.  Then the filesystem flushes its caches, clears its in-use
    flag, and closes the disk volume.  While this is happening, you can't write to the registry, since that would invalidate all the dismounting work.
    If you really need to save off state, you can call
    IoRegisterShutdownNotification to be notified before this happens.  But this is sort of unusual and I don't really encourage it.
    Of course, you still need to have a plan for what happens if there shutdown is
    not orderly. E.g., what if the power cord gets yanked out? My inclination is to make the "disorderly shutdown" case the every-time case. Then you don't have to worry about special cases, and your recovery code gets tested on every boot.

  • Apps auto-launch on startup, despite System Prefs and quitting before shutdown.

    All apps that were open before shutdown are relaunching themselves upon startup.
    This behavior occurs even if I quit each application individually before initiating system shutdown.
    This behavior occurs whether I tick or untick the following settings within System Preferences / General:
    • Ask to keep changes when closing documents.
    • Close windows when quitting an application.
    This behavior occurs despite none of the apps being listed within System Prefs / Login Items.
    Examples of auto-launching apps (behavior occured just now with these): TextEdit, Dictionary, Calendar, Contacts, Safari, Firefox, Excel, Acrobat.
    I am the administrator and only user on this machine.
    Early 2011 MacBook Pro 13"
    Mac OS X 8.5
    Build 12F45
    2.7 GHz Intel
    8GB RAM

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box markedAllow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use  another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Before shutdown

    Hi,
    IS there any proactive before shutdown in oracle 9i/10g?
    like JOB_QUEUE_PROCESSES. AQ_TM_PROCESSES(is it deprecated).

    Press the Power button once. If the Shutdown dialog appears then press RETURN to shut down. If it does not appear then you must do an abnormal shutdown by pressing and holding down the Power button for 5-10 seconds until the computer shuts down.
    Before restarting the computer do the following:
    Repairing the Hard Drive and Permissions
    Boot from your Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • Why is the voice not as clear as before.

    Because i am a semi blind user, the voice is not as clear as before. The main keyboard is to bright, not user friendly for me.

    Submit your feedback directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

  • Run a  script before shutdown with launchd

    Is there a way to run a shell script before shutdown with launchd? In 10.4, I have a shell script to remove user's folder when a user logs off.
    Lisa Perez

    the only way to do it that I know of is using a logout hook. see this link for details
    http://www.bombich.com/mactips/loginhooks.html
    However, I'm not sure exactly at what point in the logout process the logout hook is executed so there might be a problem running a script that deletes the home directory of the user that's being logged out.

  • Eject external HD before shutdown? Conflicting advice.

    Hi all. My first post. Hooray!
    Anyway, having searched this forum and other websites there seems to be conflicting advice as to whether one should eject an external HD before the computer is shutdown or not. I have a Western Digital My Passport Essential and according to WD's knowledgebase I am supposed to eject my external HD before I shut down:-
    Knowledgebase Answer ID 976 ( http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?pfaqid=976 )
    "Question:
    What is the recommended shutdown procedure for a Mac with a USB or FireWire drive installed?
    Answer:
    In some cases, shutting down the system without properly unmounting the drive results in data corruption. If the OS stops the device while data remains in the drive cache, data can be lost or file system damage can occur. To avoid possible data corruption, Western Digital recommends that FireWire and USB drives be properly unmounted from the Mac OS prior to turning off the system.
    To properly unmount the drive, simply drag the drive icon to the trash. This will assure that all data is properly cleared from the drive cache before the drive is removed. At this point the FireWire or USB data cable can be safely removed and the drive and Mac system can be powered off."
    I really do not want to jeopardise my backed up data on the external HD, so which advice should I follow?
    Many thanks.
    Resali

    Welcome to Discussions! What took you so long???
    I have always dragged the hard drive icon to the trash, then shut it off, before shutting my computer down. I have received too many warnings that "a device was improperly removed, data corruption may have occurred" or something similar, to ignore the advice.
    In addition, updating your system with a firewire drive attached can cause problems, I remove all peripherals before any update.
    So, in short - eject the external before doing anything with the internal computer, such as shutting down or updating.

  • I have one site in my browsing history that won't erase for some reason, and it's been crashing Firefox every time I try to erase it. I changed my security preferences to clear history before each session, and now I can't open Firefox at all. Help.

    The site in question was the homepage for Air BnB (http://www.airbnb.com/). It's never given me problems before, and didn't even after this particular instance. I would like to continue using Firefox, but it ill no longer open, I'm assuming because it gets stuck trying to clear the history (as per my changed preferences).
    Is there a way to uninstall the program without losing my bookmarks?
    Is there a way to manually clear this problem with my history outside the program?

    Have you looked for the previous render files? Show contents of your library and see if there are any files in the Render folder from last night.

  • In pdf file need java script to clear cache before launch of web link

    using adobe acrobat XI - have pdf file with link to external web site.
    When creating the link in the link properties selected action Run a JavaScript  the following java script was added to ensure will open in new window. app.launchURL("http://google.com", true)
    this works most of the time except with some users - if those users clear their browser cache first then it works
    Is there anything that could be added to the java script to ensure the browser cache is cleared or not used before the launch action? or any other suggestion to ensure the link will always open in new window?
    Thanks,
    Jackie

    thanks for your prompt reply.
    Was hoping maybe there would be someway to clear the cache for the users
    without them having to do anything.
    Appreciate your help.
    Jackie
    Thanks,
    Jackie
    276.783.6991 x 326

  • Arch does not umount busy disks before shutdown?

    Hello,
    Been using Arch on my Laptop, Desktop, Firewall and HTPC for a couple years now. I really like the setup.
    When shutting down the pc, Arch runs the shutdown scripts that umount the mounted volumes. If the volume is busy, it gives me a message:
    "/mnt/sdc4: device is busy"
    But then continues to power off, leaving my disk(s) in an inconsistent state on boot. It seems to me that Arch should wait until the disks are properly un-mounted before shutting off.
    Does anyone else see this as an issue?
    Thanks,
    Nate

    Just saw this:
    http://bbs.archlinux.org/viewtopic.php?id=40747
    Guess I'm not the only one with this issue...

  • Possible to run Automator job before shutdown (automatically)?

    Subject says it all, really: I have an Autamator job that copies some files from one place to another.
    I want to run this job automatically before the machine shuts down. Is this possible?

    Yes. Just add it to the Automator workflow with the "Run AppleScript" action and save it as an application to put in your Dock, or the sidebar in a Finder window, or the toolbar in a Finder window.
    If you don't want it to be too easy, then put it in a folder first. Then put the folder either in the Dock, or the sidebar or toolbar of the Finder window so you'll have to perform two clicks.
    In the "Run AppleScript" action, you can delete everything in the text box since you don't need to process any items, and then add this:
    tell application "System Events" to shut down
    Note that "shut down" is two words. You can also use the words "restart", "sleep", or "log out". There will not be a confirmation dialog, excepting when applications ask to save unsaved documents (unless sleeping).
    In the future, you can find this is out again with Script Editor somewhere in the Applications folder (or use Spotlight). You'll want to open the "System Events" scripting dictionary, and it's probably already in the "Library" window (check the Window menu, or Command-Shift-L). Use the search in the "System Events" dictionary window to find "shut down", or anything else.
    Be careful about testing this script since it will immediately shutdown the computer without a confirmation dialog. Perhaps have an unsaved document opened while testing, such as another Automator workflow with any action added and unsaved, or a new TextEdit document with a some random text typed in (a single letter will do).

  • Manual unmount Firewire hard drives before shutdown

    I'm having shutdown problems again possibly due to my new firewire hard drive, the firewire driver supplied by OS X, or some combination thereof.
    The issue is if I don't manually unmount my Firewire hard drive, the MacBook Pro does not ever properly shutdown and just spends its time doing the "spinning sun ray". If I manually unmount the firewire hard drives (by dragging to trash, for example) then there is no shutdown problem. Why should this be a problem at all? I don't understand. Why can't the shutdown command also unmount Firewire hard drives consistently?
    My set up:
    MacBook Pro <--> LaCie 120Gb firewire <--> Maxtor OneTouch 4 Plus 500GB
    I also saw this article:
    http://www.fcpworld.com/fcpworld/articles/E14514A0-F957-48E4-835A-81CE505C03D5.h tml
    Any times on how to solve this problem so that I can go to the shutdown command without first having to manually unmount the Firewire hard drives? Thanks!

    Frank Canzolino wrote:
    Thanks for reporting back, the idea was just a theory that I had never tried before. I do know that Macs will have difficulty shutting down if the state of a network is changed during to shutdown, say pulling the ethernet cable. Firewire has been implemented as a network port (actually a while ago).
    Yeah, I've known Firewire was implemented as a network port a long time ago. The strange thing is that I'm not using the Firewire port as a network device AND it has also been deactivated. It was deleting the port that seemed to have helped it.

  • Spinning wheel freezes before shutdown

    Can anyone enlighten me please on what is being checked by the system during shutdown while the spinning wheel is spinning?
    My Mac Pro is not shutting down properly and the wheel freezes just before the system reboots. This reboot does not allow you to do a Safe start or go to alternate OS on startup
    I am using a Matrox Triple Head to Go box and the Mac works fine when I bypass it However I have a three montior system for a reason and having to fall back to one is very painful
    I do recall seeing something in passing on a browse about the spinning wheel inicates the system is looking for something and when it freezes it may have to do with nor finding that something, sorry I did not pay closer attnetion to that comment at the time
    Any insights most welcome
    Thanks a lot
    Geoff

    Any help?

  • Stuck before shutdown

    I was installing ilok software. It said installation was finished and it would need to log off. Now the MBP isn't doing anything and the menu bar is transparent - time and info on the right side, but no apple on the left.
    I can access Finder and some programs, but typing doesn't work.
    Is there a way I can shut down safely? Or do I have to do a hard reset with the power button?
    Any info is appreciated.

    Press the Power button once. If the Shutdown dialog appears then press RETURN to shut down. If it does not appear then you must do an abnormal shutdown by pressing and holding down the Power button for 5-10 seconds until the computer shuts down.
    Before restarting the computer do the following:
    Repairing the Hard Drive and Permissions
    Boot from your Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • Unmounting before shutdown

    If I don't unmount a hard drive partition,etc. before shutting down the computer will it mess things up?

    Hopefully not, but you always run the risk of corruption. Any time a disk is writing and it gets shut down unexpectedly you're going to have some data loss. With that being said, I've never known my base Linux system being hurt by unclean shutdowns.

Maybe you are looking for

  • Opening and closing balance

    Hi experts. I am looking for a formula to calculate opening and closing balance @ query level. points are waiting.

  • Training and Event management.Process Flow..

    Hi, Experts, Can any body give me some notes on  Training and event management and process flow also like integration between ECC-6.0 to Non SAP 1.Training request 2.Appraisal documents for performance feedback 3.Tracking Feedback processes Pls help

  • Error on installing intel p4 ver 8

    tried to Install the ORACLE Client 8.1.7/8.1.6 on Pentium4 with win98se platform. On inserting the CD it gave the first prompt and after Clicking the "INSTALL/DE-INSTALL PRODUCTS", system stops. Checking in the TaskManager helps us to know that 'setu

  • Compatible PC cards for G3 Laptop

    I'm using a Pismo G3 laptop for school and I want to be able to get on the internet while I'm there, but I don't want to have to pay $100 for the slower connection that an original airport card would provide. Can I use a third party PC card to be abl

  • How do I turn off the apps running in the background

    How do I turn off the apps that are running in the background? We use to just touch and hold now what?