Ubuntu :: Script To Restart X After Program Crash
Aug 20, 2010
What I would like to do is if the app crashes which kills xinit for the system to either kill login (which will auto login and restart the app) or just to execute the startx command (which auto launches the app) as if typed in from the keyboard. I am trying to find a way that will use the least amount of system resources, rather than a loop.
View 1 Replies
ADVERTISEMENT
Jan 29, 2010
This has happened multiple times. I'd be running firefox and it would crash for whatever reason. I'd try to restart it and it would tell me that it's "already running as another process."
ps and top show no firefox. killall can't kill it. I found a few forum postings saying to delete the .parentlock file in the firefox directory. That allows me to start it, but all my personalizations and settings are gone. I have to each time create a new profile and copy everything over.
Kubuntu 9.04, all up to date, 2.6.28-13, 64-bit.
View 2 Replies
View Related
May 23, 2010
10.04 runs perfectly most of the time, then every once-in-awhile it crashes. The screen goes black and I have to restart. I had a similar problem with 9.10, so I reverted back to 8.04 which never crashed. I did a fresh install of 10.04.
View 9 Replies
View Related
Jun 6, 2010
bit of a server noob having built a server to hold a php website for a client hosting at home, I have some experience, but VERY limited and don't speak fluent server.My problem is that overnight each day apache on my clients server stops responding. I can still access via putty / webmin.The best I can see it, it seems that apache 2 opens too many child processes and chokes the system. My reasoning for this is:-Though I have max child set to 20 with a keep alive of 30 there are dozens of child processes 'apache2 -k start' running, some of which were started 9.5 hours ago.
-I can stop apache, though that doesn't kill these child processes. I can terminate the parent process which does kill the child processes, however restarting apache after killing the child processes results in a system crash. Rebooting the server remotely after apache has stopped responding also results in a server crash. That is NO response on any port.I would be happy to display any pertinent server config/logs etc if anyone can help me troubleshoot this?
View 2 Replies
View Related
Dec 1, 2010
I installed a CSS server following these instructions on the latest Ubuntu server :url
And I then created + configured my server as per the bottom of this suggesting the server config creator tool :url
All fine - then i go to run my server by doing :
sudo ./srcds_run -console -game cstrike +map de_dust
and it says:
Code:
andy@novo:~/srcds/orangebox$ sudo ./srcds_run -console -game cstrike +map de_dus
t
Auto detecting CPU.Using default binary: ./srcds_linux.Server will auto-restart if there is a crash.
Illegal instruction
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Wed Dec 1 16:22:40 GMT 2010: Server restart in 10 seconds
Illegal instruction
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Wed Dec 1 16:22:50 GMT 2010: Server restart in 10 seconds
Illegal instruction
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Wed Dec 1 16:23:00 GMT 2010: Server restart in 10 seconds
^X^CWed Dec 1 16:23:01 GMT 2010: Server Quit
In a never ending loop - i then add the -debug flag - and do sudo updatedb then locate debug.log but none has been created...
View 2 Replies
View Related
Oct 8, 2009
Since I have not yet the knowledge to write a custom script I ask the following:
Can you give me a (sh) script to restart amule on exit (crash)?
This I ask you because amule crashes often on my system.
I already filed out a bug report at the amule website.
View 7 Replies
View Related
Mar 17, 2010
I'm using centos 5, kernel 2.6.18-164.11.1.el5I have occasional server network problems (the NIC driver will basically crash/restart causing no connectivity for a period of time) due to the marvell sky2 NIC driver being a problem, as discussed here: This essentially means the server is unreliable when under any kind of reasonable load, to put it mildly.Worse still, the driver problem has not been resolved in 2.6.18.x - but it seems to have been resolved in the latest Linux kernels.I really don't want to compile the kernel from source, etc, but it looks like I may have no choice.Is there a repo which has a pre-compiled 2.6.20+ or 2.6.30+ kernel which I can use,
View 8 Replies
View Related
Sep 1, 2011
Any way using terminal or another method to restart a frozen or crashed program in Ubuntu?
View 4 Replies
View Related
May 18, 2010
I'm trying to get a program to automatically reload if I accidentally close it. This is a remote access program, so it has to be relaunched without me doing anything to help it along if it crashes or I accidentally close it. I noticed that someone came up with a way to solve this back in 2007 [URL].. but the files don't appear to exist any more for it to work. how I might get a program to automatically reload on exit?
View 6 Replies
View Related
May 11, 2011
I have installed Blender from Blender.org. I have installed it my home directory. After launching Blender the icon appears in the unity launcher. Then I fixed the icon in the launcher via the context menu. After restart the Blender icon does not reappear? How can I realize that the Blender icon shows up very time after starting Ubuntu?
View 9 Replies
View Related
Jul 19, 2010
Basically I have a machine with 16GB of RAM and have just discovered that using all of it can crash the whole system over one process. How could I run a process on the system in such a way that if more than 90% of system memory is used, the process immediately crashes?
View 3 Replies
View Related
Jul 2, 2010
I removed gxine and got this message.
Code:
Continue? [y/n/?] (y): y
Removing gxine-0.5.905-0.pm.2.9 [done]
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.
View 2 Replies
View Related
Feb 5, 2010
I have a program called HelloWorld, but it crashes a lot,
is there anyway to tell Linux to automatically check if Hello World crashed, and if it is crashed, restart HelloWorld? Running Ubuntu.
View 1 Replies
View Related
Jun 8, 2011
I run Ubuntu 10.10, recently I got this problem. if I open more than one program, and click on icon of them on task bar to switch between them, KDE crash and restart with log in screen. now since 2-3 days this restart also happening when I ALT+TAB to switch between running programs .
View 4 Replies
View Related
May 20, 2010
I tried to set up an automatic program restart on Debian Lenny for fail2ban and asterisk. Google helped me to find some HowTos. However, all what I tried so far doesn't work. The latest version: According some instructions the following commands have been written in a file called auto_start_stop:
Code: #! /bin/sh
-> saved in the folder /etc/init.d and
-> its properties changed with a right-click to 075.
-> The links have been created with update-rc.d auto_start_stop defaults
Why this doesn't work and how I could correct it?
View 5 Replies
View Related
Jul 7, 2010
I am facing problems to restart PADS(Passive asset detection system) from java program.I used the root as a user. So from the command prompt I can start PADS with out sudo ,but when I try to start PADS from the my java program i.e.
Process proc=Runtime.getRuntime().exec("pads restart");
It throws the error in log that FATAL error ! you not root and permission denied.
Then I tried the same with sudo
Process proc=Runtime.getRuntime().exec("sudo pads restart";
Here it create another two process extra
1 for stop the pads
2) for start the pads
It does not kill the previous process of PADS .and both the process get hung.
View 1 Replies
View Related
May 3, 2011
In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).
How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.
View 1 Replies
View Related
Jul 12, 2011
Now Debian6 suspend and rstart is all ok!
Auto start a program with login is ok.
How to auto start a program with debian suspended and restart ?
Maybe with gdm3 or NIC....?
How can I catch a event to auto start my program?
View 1 Replies
View Related
Nov 17, 2010
I'm running Debian Squeeze x64 and have an odd problem with both Empathy and Pidgin. After I launch the program and add my accounts everything works fine. When I shut down either program and restart the accounts will not connect. I have to delete the accounts and re-add them and all is good until the next time. It's not a firewall issue as I've tried it with the firewall turned off.
View 1 Replies
View Related
Apr 30, 2011
I have just finished the upgrade of the latest version and I'm at the point of my system restating.
My system automatically tried to restart but on the restart I got the 'terminal' view. It stopped when asking for my username (it never normally asks for this before the grub menu) and then password. I didn't get any further than that.
I now have on my screen (still in the terminal view before the grub menu)
"name@name-desktop:...$ "
I'm on my phone now so I don't actually have the symbol for before the dollar sign but your know what it is. The raised S on a 90 degree angle.
View 6 Replies
View Related
Mar 13, 2010
I have a suspend problem in my laptop. Sometimes, when resuming from suspend, the network adapter is down (that is, the network does not work and the light of the network adapter is off). Restarting the network service doesn't work, because I think that the system forgot about the hardware, and probably the driver should be reloaded.Does anyone knows how to do that?(ps. /etc/init.d/networking restart does not work, because the hardware driver is not being recognized anymore).
View 5 Replies
View Related
Feb 27, 2010
i have installed dhcp,there i declared the subnet and network,i used command include "/etc/dhcpd.conf.jutu1"; to start and other files, but it show me this error when i want to restart the DHCP, if you need more information contact me, i have configured this file too jutu1, but it don't let me to restart dhcp from /etc/init.d/dhcpd restart, this show me this message
[Code]..
View 3 Replies
View Related
Apr 5, 2010
Whenever I choose "Restart" from the GDM screen, GDM appears to shutdown, and the first TTY is displayed with a login prompt at the bottom (assuming I haven't used that TTY). I am by no estimation a patient individual, but I waited a solid minute or two for something to happen, but nothing ever did. I end up logging in as root on that TTY and running "shutdown -r now" to get the job done. This is a shared computer, and ideally any user should be able to perform shutdown options graphically from GDM.The only mentioned workaround doesn't apply to me as I am using the nvidia driver, not intel.
View 1 Replies
View Related
Jun 14, 2011
I'm running Fedora 15 with current updates and kernel. I do not have anything special or non-standard about my configuration or setup. I use grsync to sync my home folder files to a remote rsync server on my network. I've checked my hard drives and my memory and everything else I can think. Here is the problem:
grsync will run for some time and once it nears completion it will crash. This, however, is no standard crash. It literally shuts my computer "OFF". I have shared the remote rsync folder through CIFS as well and I can copy those exact same files through nautilus with drag and drop without issue. I have had a few occasions where the rsync process will complete without issue, but this is a rare occasion. Since it powers my computer completely off I do not enjoy the luxury of having any log files or messages to attempt to diagnose from.
View 9 Replies
View Related
Oct 11, 2010
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
View 1 Replies
View Related
Feb 23, 2011
I was wondering whether there is an inbuilt logging system in UNIX?
I ran and installation and the program opened up automatically but I can't find the program executable.
If I could find a log then I could locate this file.
View 9 Replies
View Related
Aug 29, 2010
Does anyone know if there is a program that behaves the same as Microsoft's OneNote program for linux?
View 3 Replies
View Related
Jun 23, 2011
i am running ubuntu 10.04. I am looking for a converting program and I also need a DVD making program. I'm unsure if one comes preinstalled already.
View 4 Replies
View Related
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
Apr 15, 2011
I have problems to get it work. i have tried to use pm-utils, but it does nothing.
What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.
View 1 Replies
View Related