Ubuntu :: Restart In The Event That It Ever Crashes?
Feb 3, 2010
I have a program running on my server which I want to restart in the event that it ever crashes. Someone suggested "Watchdog" to me, but it appears to me that watchdog restarts the whole system, not the program. I couldn't find much documentation for it. Another suggestion I was given was crontab, except that I don't want to relaunch the program every 60 seconds, as it doesn't run on screen or anything, it forks itself into the background after launching it. Perhaps a bash script that would check to see if the program were running or not, and if it weren't, relaunch it? Not sure how to do that, I've never written bash. In any case, I just want to keep this program running full time.
View 6 Replies
ADVERTISEMENT
Jul 14, 2010
Basically I'm running Rosegarden, fire up qsynth, load a soundfont and when it's restarting the fluidsynth engine it just hangs and does nothing. Has anyone run into this before? It's really quite irritating because as far as I know it's the only free synth with support for soundfonts.
View 1 Replies
View Related
May 3, 2011
i have Ubuntu 11.4 on my net-book and everything has been nice and good since its release and i really have been enjoying it until recently.... It seems as if for some unknown reason while i am using ubuntu my monitor would go dark with a message at the top with something along the lines of:Batter meter check [OK]after a few seconds of the screen like this Ubuntu would crash and go strait to the login screen as if i had just turned on my computer... This is a very serious problem for i am a student who types alot of essays and needs a reliable computer.
View 8 Replies
View Related
May 29, 2011
This can't be duplicated by anything specific, but I know it's not out of RAM at this point. The console keyboard and mouse are inoperational, and the monitor display seems to be going through test patterns, which turns out to be that the monitor is trying to sync to video output which is switching on about once a second. I can ssh into the box and see that many processes that were running are no longer running, for example gnome-session... and that once per second there is a new X process invoked with a different auth-for-gem parameter, per below:
/usr/bin/X :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-Kynptf/database -nolisten tcp
(one second later...)
/usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-GfBhRk/database -nolisten tcp
[code]...
View 1 Replies
View Related
Dec 11, 2009
I have installed Fedora 12 as a clean installl, everything worked perfect. But lately either after installing an update or making some parameter changes, while restarting my system it just comes up with lots of error messages and crashes. I have to press the switch off button to shutdown. I don't know from where to get that error message to post here
View 2 Replies
View Related
May 29, 2011
I have a computer that running Ubuntu 10.04.2 LTS. Consistently after a couple hours the X desktop and GDM dies. It works fine on my other computers but this computer is an intel 2.4 GHz, 1.5 GB. This can't be duplicated by anything specific, but I know it's not out of RAM at this point. The console keyboard and mouse are inoperational, and the monitor display seems to be going through test patterns, which turns out to be that the monitor is trying to sync to video output which is switching on about once a second. I can ssh into the box and see that many processes that were running are no longer running, for example gnome-session... and that once per second there is a new X process invoked with a different auth-for-gem parameter, per below:
[code]....
View 7 Replies
View Related
Sep 10, 2010
I have a java service that needs to be run in a gnu screen session so that I can -r into it to access it's interactive shell. I would like this to run at start-up. More importantly, it crashes frequently so I need the service to restart itself when it crashes. How do I go about doing this myself? My previous experience with shell scripting amounts to putting ./service in a file and marking it executable. This will be running on a FreeBSD server, but I might put it on a Linux server soon also. So any caveats on the differences would be useful information.
View 6 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
May 3, 2010
Ever since 9.04 or thereabouts, I have noticed that it's impossible to change individual system event sounds in System -> Preferences -> Sounds. It only gives me a few lame choices of "themes". While it used to be possible to define my own sounds for startup, shutdown, new e-mail, etc, I can't find ANY dialog to facilitate this in newer versions of Ubuntu.
A question: HOW do I do this without having to hack apart my stock system sounds? There should be a way, but google and forum searching turns up nothing.
A comment: Ubuntu continuing to "nerf" their dialogs like this is infuriating, especially when the underlying system works so well. I actually don't know if Ubuntu or Gnome is responsible, but either way taking away rock-bottom basic functionality like this only hurts the OS and Linux's cause.
View 9 Replies
View Related
Jan 19, 2011
I was turning off my pc and my brother pulled out his sd card while the pc was shutting down. Now when I try to boot up I can't boot into my ubuntu partook it just hangs and then comes up with inittramfs. I can boot into my windows partition just fine. I also tried rebooting with the sd card in the slot but same thing. I managed to load up a live disc but have no idea what to do next if I want to save my old partition (if it can be saved) otherwise as a last resort ill have to overwrite the partition.
View 3 Replies
View Related
Mar 3, 2010
I use network-manager-pptp to connect to my VPN server. However, occasionally my VPN drops out (although my Internet stays up). I was just wondering how I could make the VPN drop-out trigger a bash script, for example playing a sound to alert me that the VPN has dropped?
View 1 Replies
View Related
Oct 1, 2010
Does anybody how to open .evt files exported from a Windows System Event Log?? I've searched the forum and googled around but I can't see anything related to .evt files on linux.
View 2 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
Jan 9, 2011
I have posted this somewhere here before and solved it but can't seem to find it. Just waisted 50 minutes googling and checking man pages for upstart. By the way; are man pages written by someone using their tows to type and getting beaten by a stick for every character they type? It seems missing a lot of info. Anyway, I know smbd is started with /etc/init/smbd.conf and there is a line like:
Code: start on local-filesystems Now it needs to be started on? (manually) I can't seem to find any useful information but did seem to find the upstart man pages a hundred times or so (same info same missing parts). I would love to get involved writing documentation for these things if only I know what I was doing.
View 3 Replies
View Related
Feb 18, 2010
How to do so? For starters, I'm not sure there is such an event. Maybe it has something to do with the OS moving through certain run-levels
View 6 Replies
View Related
Feb 11, 2010
With /usr/bin/canberra-gtk-play set to --id='desktop-login' in the startup Applications dialog one expects a sound to play at login. This is not the case with fedora 12. I set the variable to --file=/home/me/sounds/myloginsound and I got sound.
I'm curious as to why the event id failed. I suspect that id was not linked/associated with any sound before fedora 12 was released. How does one troubleshoot sound event ids and their associated sounds in f12.
I'd like to get audio when I log out as well. I recall seeing a dialog box with events and associated sounds in f11 (or was it f10?) .... I don't see it in f12
1. Does anyone know which package adds that functionality?
2. In the absence of a GUI approach, how can this be achieved (with the terminal)?
View 2 Replies
View Related
Oct 26, 2010
I am on debian lenny and I am trying to make a script that will run in the background and checks the ethernet connection. If the ethernet connection goes down it will connect to wlan. I have found 2 ways of checking ethernet connection, via proc/net/dev and via ifconfig eth0. But if possible I want to avoid polling. So is there any event that is triggered when the table gets disconnect or at least the connection goes down and up?
View 1 Replies
View Related
Nov 30, 2010
I'm using mq_notify to be notified about events on a message queue. But my registered notifier function is not being called. I'm pasting my code snippet below:
[Code]....
View 4 Replies
View Related
Apr 16, 2010
In window , I can catch all of systems event by window API, but in Linux,I don't know how to do it.
View 2 Replies
View Related
Mar 14, 2010
I have a Logitech Media Play mouse with many buttons. I'm using xbindkeys to create some shortcuts to programs e.g. firefox, gnome-terminal--these work wonderful. What I cannot figure out is how to get the buttons to work for the media player(Ubuntu>System>Keyboard Shortcuts>Sound). I set shortcuts using my win key and letters, hoping to use xbindkeys to send out a keystroke. I have tried to use xmacro but to no avail. xdotool was not helpful, I think it may be outdated(desktop/workspace functions did not work).
My preferred option would be to get mouse events to keystrokes working with xbindkeys and program x(x being whatever works); however, just getting my media buttons to interact with the media play is my ultimate goal.
View 1 Replies
View Related
Aug 21, 2009
I know in windows xp there is a registry key and an entry in the Plug and Play log file as well as maybe an event id, that is produced when a device (say usb) is plugged in. My question is, besides /var/log/ (messages?) Is there any other location that that information is stored in?
View 3 Replies
View Related
Jun 7, 2010
Is it possible to catch the power management events(hibarnate/standby/sleep)o the code(c++)?
View 2 Replies
View Related
Aug 6, 2010
My OS is F12 with Gnome desktop, after many alternatives I installed ns-allinone-2.34 so ns-2.34 run very well:
[dreams@localhost ~]$ ns
% exit
When I try nam, I got this error:
[dreams@localhost ~]$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units }"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units }
bind Li..."
I m not familiar with Linux so I don't understand what it means. I want to tell you that I can run nam when I access to the folder with this command ./nam and I can see the samples so I run simulation. I visit some pages when they speak about gcc and their compatibilities with F12. When I use Makefile I got access dined.
View 5 Replies
View Related
Jul 13, 2010
I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies
View Related
Jan 15, 2010
EDIT: I am now just looking for a way to multi-task in PAM, if at all possible.
Basically I would like to supplement replace my password based logon with and RFID scanner. The output of the RFID scanner looks like this:
Tag Read: 0a006f4757
Tag Lost: 0a006f4757
Tag Read: 2800c48994
Tag Lost: 2800c48994
As you can see I scanned some different RFIDs.
Basically I would like for my logon screen to wait until my script gives the message "Tag Read XXXXX where xxx is the RFID unique ID.
In case I lose my RFID, I would like to also allow me to type my password in.
View 8 Replies
View Related
Jan 30, 2010
I'm running Ubuntu 9.10. I'd really like to make an image of my entire system in the event of a mishap. I've found from experience that anything can happen with Linux and then you're into another reinstall. Anyone know of a good program or process?
View 7 Replies
View Related
Oct 25, 2015
I am installing canberra for event sound and input feed back sound. I installed freedesktop sound theme and moblin. All sound files are there but only trash empty event trigger sound.
Other events like: login, dialog error , etc etc no sound...
For login I created login.ogg link to destop-login.ogg but canberra-gtk-play claim unknown event id?
I like to have startup sound at xfce login and other event...
View 0 Replies
View Related
Jan 24, 2011
I recently gave XFCE a try, after using Openbox for a long time and I really like it, so that I think I will switch totally to XFCE. All is working fine, except one thing: I really would like to have event sounds.
So I launched the Appearance-Module and checked under the Settings-tab both Enable event sounds and Enable input feedback sounds. Following the tooltip for the event sounds I also installed libcanberra, but I get absolutely no event sound.
[Code]...
I thought, maybe there is a lack of a sound theme, so I also installed freedesktop-sound-theme, but that didn't help. I did already searched with Google and in this forum, but have found nothing that would help me. I would be very happy if anyone can give me an advice what to check or has a link to a tutorial for this sounds.
View 11 Replies
View Related