[SOLVED] GNU Screen - sessions always dead after restart

I recently started using GNU screen.  I'm able to detach and reattach sessions normally, except after a restart.  Then any detached sessions are marked as dead and all I can do is run a screen -wipe.  My sessions are stored in ~/.screen. 
I've searched the web and forums but no one seems to have had this problem.
Any ideas?  Screen's a lot less useful if I can't reattach after restarting.
Last edited by noahsark1126 (2009-08-18 05:14:42)

This is sort of related, but sometimes it is possible to use special software to suspend an application as a file, which could possibly be set up with screen to provide a rebootable state. However this software seems to be fairly hard to find and get working well enough to be usable. If you want to investigate more, you can probably google for something like "linux application freezing" or "linux application checkpointing".
Actually I just found the software I was thinking of as I'm typing this, http://cryopid.berlios.de/. The page doesn't seem to be loading for me, but I think I have used this in the past with limited success. Not sure if it up to date with the latest kernels however.

Similar Messages

  • Iphone 5-updated to ios 7.0.2 keeps freezing in lock screen.I always need to restart or should wait till a phone call come to unlock the screen. Does any body have the same issue??

    Iphone 5-updated to ios 7.0.2 keeps freezing in lock screen.I always need to restart or should wait till a phone call come to unlock the screen. Does any body have the same issue??

    I do have the same issue with my 4s after updating.tried with restoring several times,but the problem still persists.....

  • [SOLVED] start screen session as different user

    This is driving me nuts. I run an opensim server on system, and currently have a watchdog script used to check that the server is running and either run it or re-start it as necessary (in the event of a server crash).
    The server itself is run in a gnu screen session so that I can log in to the server remotely via ssh. At the moment I run my watchdog at login, which is not ideal. I want to run it at boot so that I don't actually have to login to start. A prime candidate for rc.local. However, starting the script in rc.local always starts the screen session as root, whatever I do, which is not what I want (obviously a publicly accessible server should not be running as root). Here's what I've tried so far:
    in rc.local:
    su user -c `sh /home/steve/scripts/checksim.sh` &
    in the script:
    su user -c 'screen -d -m mono Opensim.exe'
    Both tried together and varying combinations. I've also tried with sudo:
    sudo -u user -n -i ......
    Either the screen session doesn't start, or it starts as root. Any ideas?
    Last edited by Roken (2012-05-19 13:28:56)

    Argghhh - fixed it.
    One of my previous tries resulting in the server running as root had changed ownership of the server cache to root, preventing the server itself starting as a normal user. Fixed up ownership and tried again, now it's running properly from rc.local

  • Conky inside GNU/Screen session

    hi! i was looking around but found nothing similar to what i want...
    i was searching for a possibility of use conky INSIDE a terminal instead of the root window (aka "desktop") because i barely see my wallpaper, it's always covered with urxvtc sessions in dwm, so i have a detailed bottom bar inside dwm bottom bar, but i like to trim it to say audio volume + clock and have a conky or another similar program inside a gnu/screen "tab" showing my system activity, i surely want disk I/O usage and free/used space for example
    the thing with conky-cli is that it behaves like this: (not cleaning the screen with every refresh)
    [aleyscha@aleyscha 39 ~]$ conky
    5d 12h/12C | 12%/36.0C/2/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 0k/0k | 0/0 | 20:22 07/10/2008
    5d 12h/12C | 20%/36.0C/2/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 16k/7k | 0/0 | 20:22 07/10/2008
    5d 12h/12C | 11%/36.0C/1/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 35k/14k | 0/0 | 20:22 07/10/2008
    5d 12h/12C | 12%/36.0C/3/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 39k/14k | 0/0 | 20:22 07/10/2008
    ^C5d 12h/12C | 16%/36.0C/1/140 | 552/415 | /sdb1:12G /sdd1:60G /cdrom:n/a | 90% | 39k/14k | 0/0 | 20:22 07/10/2008
    Conky: received SIGINT or SIGTERM to terminate. bye!
    [aleyscha@aleyscha 40 ~]$

    LOL, DONE!!
    ${execp clear} was the answer
    here's my conky(cli) rc file (needs work... i'll stole some from your conky configs and screenshots thread, huaahahahaha)
    background no
    out_to_console yes
    update_interval 2.0
    total_run_times 0
    uppercase no
    TEXT
    ${execp clear}
    ${time %l:%M:%p}
    Uptime: $uptime
    CPU: ${cpu}% ${cpubar 5,85} Disk I/O: ${diskio}
    RAM Usage: $mem/$memmax - $memperc%
    Swap Usage: $swap/$swapmax - $swapperc%
    Net Down: ${downspeed eth0} k/s Net Up: ${upspeed eth0} k/s
    File systems:
    / ${fs_used /}/${fs_size /}${alignr}${fs_bar 5,120 /}
    /home ${fs_used /home}/${fs_size /home}${alignr}${fs_bar 5,120 /home}
    /sda1 ${fs_used /sda1}/${fs_size /sda1}${alignr}${fs_bar 5,120 /sda1}
    /sda6 ${fs_used /sda6}/${fs_size /sda6}${alignr}${fs_bar 5,120 /sda6}
    /downloads ${fs_used /downloads}/${fs_size /downloads}${alignr}${fs_bar 5,120 /downloads}
    /sdb5 ${fs_used /sdb5}/${fs_size /sdb5}${alignr}${fs_bar 5,120 /sdb5}
    /sdc1 ${fs_used /sdc1}/${fs_size /sdc1}${alignr}${fs_bar 5,120 /sdc1}
    /sdd1 ${fs_used /sdd1}/${fs_size /sdd1}${alignr}${fs_bar 5,120 /sdd1}
    Top Processes:
    Name PID CPU% MEM%
    ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    Mem usage
    ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}

  • Window size always changes after restart in 10.9.2. How can I fix it- as in older OS-Versions?

    Hi,
    I'm using OSX for a long time. Now I bought a new MBA 10' with Mavericks 10.9.2. I'm really tired about ever changing window sizes after restarting my MBA, espacialy the sidebar is skipping to a wider size, then the window, I used before turning the mac of. No window opens, in exact that size I used before. Of course, I used to fix it, but never menaged to do so.
    Have you any idea to solve my problem?

    Do you uncheck the "Reopen windows when logging back in?" box? If so, does the issue occur when you leave the box checked?
    That might be the culprit.
    I hope I solved your question.
    Austin

  • Reduce Transparency always on after restart

    hi all,
    before upgrade to 10.10.2 all is working good for me, but after upgrade to Yosemite 10.10.2 my Reduce Transparency option in accessibility control is always turned on by it self after restart my mac mini
    well, it's not a big issue but annoying me enough to turn off the Reduce Transparency option every time start my mac mini
    anyone have same experience like i have?

    Do a backup.
    Quit the application System Preferences.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.systempreferences.plist. Move the .plist to your desktop.
    Restart, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this

  • Time machine always unlocks after restarting

    Time machine always unlocks after each restart - only on MBA my MBP 2010 always stays locked and I need to put in password to open it -- any advice please I mean the locked to prevent changes lock

    Turn off TM, delete the file com.apple.timemachine.plist from the folder ~/Library/Preferences, reboot, and re-set-up TM. See if that helps.

  • Computer wakes from sleep but screen remains black even after restart

    So, I installed SL yesterday and everything seemed fine. Last night, I closed my computer's monitor (putting it to sleep) for the night. This morning, when I opened it, the screen was black. I could not see anything, so I just restarted the computer.
    On restart, the screen remained black.
    After some experimentation, I realized that the computer was actually running, but I just couldn't see anything. So, I typed my password - screen was still black.
    I then pressed the power button and enter - shutting down the computer properly.
    After it shut down, I turned it on and the screen came on as normal...
    What's going on here?
    I checked some other threads and there was some potential issue with the iphoto screensaver, but I am not sure if that is the case here or not.
    Any thoughts on how to fix this or prevent it form happening in the future?

    I just had a similar thing occur. After resetting the pram the screen came back on.
    I had noticed some problems with the hot corners for sleep mode earlier so I have deactivated them now to see if this was the problem. The only other thing I can think of is the recent Java update. I installed it right before the problem occurred.
    Kurt

  • Bootcamp 5.0 installation: Blank Screen with blinking cursor after restart

    I have a late 2011 mbp with 16gb ram, 2 750gb hard drives. I'm trying to install bootcamp on the 2nd hard drive. I'm using the cd drive in an external usb housing to install windows 7 ISO burn. I've used this cd several times in the past with no issues. After creating the partition with bootcamp assistant, my mac restarts automatically then when it boots, it goes to a blank black screen with a blinking cursor. I have restarted and repeated this process several times, as well as let it set there for about 1 hour and still nothing...I've also tried sudo ram reset and command option p r but still nothing.
    Anyone have any idea what's wrong?

    Ok guys, for those of you who are having the same problem...here are the instructions on how to get past the blank screen and install windows 7 bootcamp with TWO hard drives installed.
    1. With both hard drives installed, start the bootcamp assistant (you need a usb optical drive with windows dvd inserted to do this). Partition your SECOND hard drive for windows.
    2. When your computer restarts and your at the blank screen with the blinking cursor of doom, manually shut down your computer.
    3. Remove both hard drives from your MBP. Put the "Bootcamp" partitioned hard drive in the main HD bay. MAC OS DOES NOT NEED TO BE INSTALLED ON THE  "BOOTCAMP" HD TO DO THIS.
    4. Install your optical drive back into its factory place. (Where the "BOOTCAMP" HD was just installed at)
    5. Power back up your MBP while holding the alt/option key down. Make sure the windows DVD is still in the optical drive!
    6. Click on windows cd to boot from.
    7. Start installing.
    8. When finished, replace optical drive with "BOOTCAMP" HD and put MAC OS HD back in like it was before this process.
    9. Your finished.
    10. Now enjoy!

  • Screen brightness at max after restart

    everytime i start my macbook the brightness of my screen is set to the highest level. no matter what level i choose when i work it always adjusts itself to max when i start. any solution what i could do? i had a motherboard replacement and never experienced this problem before.
    - christian

    are you using the fast user switching screen?
    i.e. when you restart/start, does it display a choice of users before you go to your desktop window?
    I have been getting a bit irritated as I've noticed mine does the same thing ~ As I read your question, however, I realized the fast user switching/system preferences at my logon screen may be the problem...as I am not YET logged into "my" preferences until I sign in from that point.
    JUST A THOUGHT....
    MacBook iMac 20in   Mac OS X (10.4.8)   MB 2.0/2GB iMac 2.16/1GB
    Powerbook G4   Mac OS X (10.4.4)   15in 1.5GHZ Combo 1GB RAM

  • Session not destroyed after restart

    Hi all,
    On my Application server 8.1_02 EE as well as 8.2 PE i have an application.
    The session is destroyed on log out... but after a successful restart of the application server, the session is kept active..
    Is this a normal behavior, or is there something that i must be aware of?
    Thanks,
    Scotty

    Hi Ronald,
      I once encountered a similar problem when calling a BSP application in a GUI HTML control. I used a copy of session_single_frame in my BSP application and it worked fine when I called the BSP application from SE80 or by entering the URL in the browser directly but I couldn' t get it to work in the HTML control.
    The solution then was to use an additional URL Parameter called sap-syscmd=NOCOOKIE. This tells the request handler on the Web AS to retrieve the session ID from the URL and not to use a cookie.
    Hope this helps,
    Andy

  • Network clock always open after restart

    Whenever I use System Preferences to check "Network" after a restart, the clock is always open even though I locked it, on a previous computer use. WHY? It only happens after a total Mac shutdown.
    Is there a specific program to be run that describes the condition of your Mac? I frequently use "Disk Utility," "DiskWarrior 4.1," or "TechTool Pro 4.6.2" What program covers all basic components?
    ZTIWYM3ZUI
    Mac: 7/8/04 Power Mac G5, Speed 2GH, Memory 1.5GH, OS: 10.5.4

    ZTIWYM3ZUI wrote:
    Quote: Not sure I understand exactly what you mean.
    Could you explain with a little more detail please?
    Using the "System Preference" option, under "Internet & Network," I open the "Network" option. On the bottom left of "Network" there is an open lock. If I click on it for locking, it stays locked but requires me to enter my system password to access "Network" again. Then it is unlocked.
    However, if I shut down my computer with "Network" locked, then restart it, and recheck "Network" again (without the necessity of entering my system password,) the "Network" lock is now opened." So I'm presuming the "lock" only stays closed while the computer is being used. So what is the point of the lock? I suppose there is a simple answer that proves I'm incredibly ignorant!
    Thanks for your response.
    ZTIWYM3ZUI
    Reread my original reply-the instructions in there should fix it for you.
    BTW, you can quote my reply by clicking the quotation mark button when composing a reply.
    This is what it looks like, above.

  • Padlock in security settings is always unlocked after restarting

    Hi
    I don't know if this is a regular situation, but after I turn on my macbook or restart it, the padlock in the security settings is unlocked. When I see that I always lock the padlock and the only way to unlock it is writing off my password. But, why is unlocked after I restart or turn on my macbook?

    this is normal. if you don't like it go to the very same security system preferences->security and check the box "require password to unlock each preference pane".

  • [SOLVED] Aspire one D250 *almost* dead after update

    Well, today I did a major update (something like 140 mb) and after rebooting, my Aspire One D250 (with kernel26-one from the AUR) loads Gnome, and then it gets stuck.
    I've been reading and there seems like a lot of people is having troubles with xorg, touchpads and keyboards.
    Seems like my case here: I can't get my touchpad or the keyboard to work, I can't do anything.
    Also, the resolution is wrong, and it seems like KMS is not working well, as the boot screen doesn't get the proper resolution neither.
    Please tell me if there's anything else I can bring on to help figure out what's wrong.
    Thanks in advance!
    Last edited by guidito73 (2011-03-20 03:21:30)

    From what I've seen, kernel26-one is out of date and was marked as such on the 12th of March.
    And if I remember correctly, the kernel26-one is for the A110, and you have the D250. I run kernel-26 just fine on my D255.
    Last edited by tntexplosivesltd (2011-03-24 07:00:19)

  • K8N Neo D-bracket right usb dead after restart?

    I have k8n Neo fsr. When I restart, right usb on d-bracket is dead, until i unplug and replug device, then it functions. Why? Faulty D-Bracket or...?

    I used speedfan 4.20 a bit and deinstalled it some time ago, haven't tried 4.21. I used  only left port on d-bracket and it was ok (it it the port away from leds). Recently I started using both, and I have problems with the port closer to leds, the other one's fine. Drivers are 5.10.
    PS I tried shutting down ups and restarting, no change. I will try to unplug power cable, but I doubt that will help...

Maybe you are looking for

  • Reg. PR generate for components

    Dear Experts I have created two material one is Finished material(T-Shirt) and another one is Accessories(Washcarelable) in CS01  I attached the accessories as component and saved. Next I ran MRP in MD02 and MD04. The Purchase requisition is created

  • How does one get the status of the crossgrade order process?

    Hi - In mid-December after receiving a shiny new Quad Proc Intel based mac pro, I discovered that my PowerMac version of Final Cut Studio was barely functional on this new hardware. Since I bought the hardware to go faster, it seems Ironic that I can

  • Ipod touch backlight issue

      l have a backlight that went out the i touch is fine but no light. No water damage about two yrs old. Suggestions?

  • Tiger Maintenance Question

    I work a small school, and have a question about Tiger maintenance (I use the general term 'Mac' because I am referring to everything from iMac G3's, G5's, Intel iMacs, iBooks andMacBooks). As far as I can tell, what currently passes for maintenance

  • Slideshow in Windows XP

    I've noticed that when a slideshow is displayed on a Windows XP computer that the individual photos don't scale up like they do when viewing the slideshow in Safari on a Mac. It doesn't seem to matter what Windows browser I try - Safari, Chrome, IE o