LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2012, 06:21 AM   #1
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Blog Entries: 1

Rep: Reputation: 55
Odd gnu screen issue


I run an opensim server on my system, running in a gnu screen session. I have a bash "watchdog" script that:

Checks that the server is running and if not, starts/restarts it.
Checks the CPU use of the server and issues a message to the simulation that the server will restart in 1 minute, and then kills the server to let the restart routine start it up again.
Checks the number of in world users and disables server scripts if there are none (re-enabling them when a user arrives).

The script is working well, except that after restarting, nothing else gets done (the script continues as normal, put putting commands to the server via screen -r server -X stuff "..." doesn't yield any output. If, however, I attach the screen session to a terminal/tty and then immediately detach it, the script behaves as expected.

The script is launched from rc.local at bootime via su username (so not running as root), and the server is started with "screen -d -m ......"

Has anyone observed this behaviour and can offer a solution?

TIA
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnu tar creates multiple odd directories with numeric names when extracting froff Linux - Software 2 02-05-2010 08:12 AM
Odd backspace issue: only happens with konsole+remote gnu screen manifoldronin Linux - Software 3 12-27-2009 04:02 AM
installing screen(http://www.gnu.org/software/screen/) dreamlemon Solaris / OpenSolaris 5 09-29-2007 03:36 PM
Odd Side effects of using gnu.io.SerialPort.setSerialPortParams (from RxTx v2.1.7) Tuatha Linux - Software 1 04-19-2006 09:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration