Server :: How To Automate Starting A Process In Gnu Screen And Restart It When It Crashes

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


ADVERTISEMENT

Ubuntu :: 11.4 Randomely Crashes And Goes To Restart Screen?

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

General :: Automate A Definition Process?

May 24, 2011

I would like to automate a definition process. I have 11,581 to define. :|

I would like to read each word, copy the definition(s) and append it next or below the word or save definitions to file.

The word list has one word per line.

Python script?
Bash?
Perl?

Its an interesting project but I cant seem to figure it out. Lack of programming skills.

View 2 Replies View Related

General :: How To Automate Log Deletion Process

Feb 25, 2010

I have RHEL Machine in production server where we gets usual alerts that logs filling up spaces. We archive those logs but in case it grows maximum we delete the old ones. Any idea how can we autiomate the process.

View 1 Replies View Related

Ubuntu :: Cannot Kill Sshd Process And Stop Ssh Server From Automaticall Starting?

Dec 10, 2010

I'm running Ubuntu 10.10. I recently installed the open ssh server so that can sftp stuff. However, I do not want the server to always be on, only when I manually start So, I did an 'update-rc.d -f ssh remove'and now I don't see any startup scripts in the rcx.d directories any more.However, when I do a 'ps ax', there is always a '/usr/sbin/sshd' process running. I try to kill it but it keeps restarting under a different process ID.How do I disable sshd?

View 3 Replies View Related

OpenSUSE :: Backup Important Files - Automate The Process Using Rsync And Cron

Aug 14, 2011

I would like to backup important files (totaling about 400GB) on my ext 4 RAID 5 array to an ext4 external hard drive over USB (external drive is mounted to /mnt. In the future I'd like to automate the process using rsync and cron so for now I'm using rsync to transfer the files. My problem is that using the rsync command like this: # rsync -Pr "/dir1" "/dir2" "/dir3" "/dir4" /mnt

rsync shows me the checks and transfers for awhile and then throws up an i/o error (wish I had a screenshot to show but I don't). When I ls /mnt I get a similar i/o error. I then check /dev for the drive and find that it no longer shows up. Originally the partition was /dev/sdc1. I tried unplugging the USB at this point, plugging it back in and mounting the drive back to /mnt, however it has now assigned it to (you guessed it) /dev/sdd1. I get the drive mounted and try the original rsync command again, hoping the first error was a fluke or some kind of one-time drive fart. This time it makes it quite a bit further and then throws up the exact same problem. Am I doing something terribly wrong here? As I said, I'm very new to bash so I'm not making some absolutely moronic, newbie mistake.

View 9 Replies View Related

General :: Bash Script To Automate The Virtual Host Creation Process?

Mar 14, 2011

This is my sample code in /etc/httpd/conf.d/applications.conf file currently we are creating subdomain mannually for every new subdomain. I want to automate this process througs bash script , how its possible.

Code:

<VirtualHost *:80>
ServerName google.com
ServerAlias google.com

[code]....

In this code which i marked BOLD that content only we'l change for every subdomain. while manually doing this most of the times errors are coming to avoid that i need to automate this process.

View 3 Replies View Related

Ubuntu Servers :: Write A Shell Script In Order To Automate The Process Of Uploading A File?

May 21, 2010

I am trying to write a shell script in order to automate the process of uploading a file onto an FTP server using the built in FTP commands in ubuntu server (lucid). In order to connect I can use the following:

Code:

ftp wsbeorchids.org.uk
Name (wsbeorchids.org.uk:danielgroves): USERNAME
Password: PASSWORD

In need to pass my username and password in when prompted the prompts. How should I go about doing this? I have tried echoing the values without success. Please not that I am something of an amateur with scripting.

View 6 Replies View Related

Fedora Installation :: Fedora11 - Black/blank Screen When Starting X Server?

Oct 14, 2009

I have just installed Fedora11 on my machine - the installation failed to start the x server so I had to install with the textbased installer. When the installation completes, I boot up and first I update Fedora with "yum update". Then I install a nvidia driver with "yum install kmod-nvidia". Then I run nvidia-xconfig to make a config file. But when I try to run "X", I just get a blank screen. I can run system-config-display fine, and setup my resolution etc. The log doesnt seem to give me any errors.I have two Geforce Fx3500 card in the machine.

View 10 Replies View Related

Hardware :: Fedora11 With FX3500 - Black/blank Screen When Starting X Server?

Oct 14, 2009

I have just installed Fedora11 on my machine - the installation failed to start the x server so I had to install with the textbased installer. When the installation completes, I boot up and first I update Fedora with "yum update". Then I install a nvidia driver with "yum install kmod-nvidia". Then I run nvidia-xconfig to make a config file. But when I try to run "X", I just get a blank screen. I can run system-config-display fine, and setup my resolution etc. The log doesnt seem to give me any errors. I have two nvidia Fx3500 card in the machine. I have tried the 173, 185 and 190 driver - same thing.

View 2 Replies View Related

Server :: Running CentOS 5.4 - SpamAssassin & SendMail - Starting Spamd: "child Process [3956] Exited Or Timed Out Without Signaling Production Of A PID File"

Mar 26, 2010

Brand new to Linux. Sort of got thrown in front of the bus if you know what I mean. The company I work for has a Linux server running CentOS 5.4 Company uses Linux for their Email, FTP and Web Server. Have been here a few years dabbling in and out of Linux and now that the old Admin has left the company.....I need to learn it ASAP. The server has run pretty solid until today.

The email server runs SendMail and SpamAssasin. Received lots of complaints today regarding extra SPAM. Noticed that SpamAssassin was not running. Tried to restart it through the WebMin tools and got the following error: Starting spamd: child process [3956] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2588.

View 1 Replies View Related

Fedora :: 12 Crashes On Restart?

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

Ubuntu Installation :: 11.04 Upgrade Or Reinst Causes White Terminal Screen And Endless Restart Of X Server

Apr 29, 2011

I'm having lots of trouble with 11.04. Note: everything used to work beautifully on 10.10 for me. I first upgraded and ran into all the problem below, then reinstalled clean and still have the same issues.

1. Terminal screen is unreadable after grub menu. The screen is all white and text is garbage looking. My graphics card is an nvidia fx5200.If I edit the boot option for linux and remove the line 'set gfxpayload = $linux_gfx_mode', the terminal looks normal again.

2. Unity or Compiz or both are broken for me.

Regardless of whether I fix the issue in 1 or leave it there, after booting into X11 my desktop looks like it is blinking. I think my unity keeps restarting. If I disable compiz and use meta city the screen is stable but I have no menus making it useless.

NOTE: I didn't explicitly install any nvidia drivers, not sure if it did it install it automatically as part of the isntallation.

I don't care for Unity (even though it looks kinda nice). I just want my X11 working again with HW acceleration. I am happy to go back to a working gnome except I don't know how. After the upgrade, I was able to switch my driver from nvidia to vesa in xorg.conf and get something usable (but horribly slow), I think it was classic and not unity. However a fresh isntall has a stub for xorg.conf with nothing much in it. If all else fails, I will reinstall 10.10 and wait for a more stable 11 release.

Update: I used to tick automatic login which took it straight to unity which meant I ran into 2. and made this version unusable.If I untick this option on installation I can at least switch to classic and use my desktop.

View 9 Replies View Related

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 View Related

Ubuntu Multimedia :: Qsynth Crashes On Restart?

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

Ubuntu :: X/GDM Crashes Then Dies While Attempting To Restart Once Per Second?

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

Software :: X/GDM Crashes Then Dies While Attempting To Restart Once Per Second?

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

Fedora :: F15 - Starting Docky Crashes Session

Jun 4, 2011

Trying to start Docky, I get kicked out of my session. I do not see anything related in the system messages log.

View 2 Replies View Related

Ubuntu Multimedia :: Dorame Crashes After Starting?

Mar 11, 2010

I just installed Dorame (The Pandora client) and it crashes when I try to run it. It gets through the check for updates etc. But when it gets to opening the main window, it crashes.

View 2 Replies View Related

Ubuntu :: Empathy Crashes When Starting A New Conversation

Sep 18, 2010

Empathy will start up fine, but if I initiate a conversation (or if someone IMs me) then Empathy will crash. Has anyone else had this problem, or knows how to fix it? If not, is there another comparable IM service that integrates with the memenu as well as Empathy?

View 4 Replies View Related

Ubuntu :: Starting Video Crashes Skype

Dec 27, 2010

ubuntu 10.10
skype 2.1.0.81
Logitech usb cam

Have tested video with cheese works fine Have tested cam with chat sites seems to work.

I can skype people, text and voice call, and can watch their video but as soon as I enable my cam Skype crashes.

View 4 Replies View Related

Ubuntu :: Software-center Crashes At Starting

May 24, 2011

I installed Audacity, the Software-Center downloaded and installed it, but it crashed.

View 7 Replies View Related

Software :: Ubuntu Crashes When Starting VirtualBox?

Jan 6, 2011

If I start my VirtualBox on Ubuntu 11.04 it crashes 50% of the time... The whole system hangs, even the music keeps playing the last 2 seconds over and over... I can't find useful information in the Log File Viewer. I'm using seperate X screens, maybe it has something to do with that?

View 2 Replies View Related

General :: How To Prevent A Process Starting

Jul 7, 2011

I have synergyc process that starts at boot. How do I prevent this process from starting? I've searched /etc, /etc/init.d for some configs or scripts but found nothing.

View 2 Replies View Related

Slackware :: KDE4.4.5 Crashes When Starting Language Settings In Systemsettings?

Dec 3, 2010

I am trying to switch to KDE4.4.5 on my main machine. I installed the KDE packages and also the german language file. Everything works fine except the language settings. When I try to start it crash and a KDE crash dialog opens that gives this "developer information":

Code:

Application: System Settings (systemsettings), signal: Segmentation fault
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.2200.5-gdb.py", line 9, in <module>
from gobject import register

[code].....

It works on my netbook. I run on both machines Slackware 13.1. The only difference I can think of is that KDE was pre-installed on my netbook and I just upgraded it. On my main machine I installed all packages except the packages of kde and kdei.

View 2 Replies View Related

Ubuntu Servers :: Way To Automate The Server Login?

Feb 5, 2010

just installed server edition... and is there a way to automate the server login?or through ssh because i want to get rid of the monitor i have plugged into it

View 1 Replies View Related

Ubuntu :: How To Fully Automate A Minecraft Server

Jun 29, 2011

I'm trying to fully automate a Minecraft server, and I decided to use Ubuntu 11.04 on this computer. The computer I'm using for it is an old computer (it's the old family PC, it's about 5 years old (and running amazingly now that I've formatted the hard drive (compared to how it used to run))) so it won't run the Unix environment (or something like that) and runs the Gnome environment instead.

Anyways; the server auto-starts when my computer turns on (my computer also automatically turns on). Now all I need to do is have my computer auto-shutdown at 12:00AM as well as enter the command "stop" into the running terminal. I plan to later add more commands (such as automatically welcoming people to the server when they connect, but that's not important right now and I'll likely be able to figure out if I can get this working).

This is the command I'm using to shutdown the computer:

sudo shutdown -P 24:00

However, it doesn't work. First of all, I need to enter my password, so I need some way to have the shell file enter my password for me whenever the terminal asks for it. Second of all, it just plan doesn't work, even if I enter my password (like, the countdown doesn't appear). As for entering commands into the terminal, the only way I can think of is:echo "stop" But the problem is that doesn't work because it wont enter into the running terminal (and I don't know how to do that).

View 9 Replies View Related

General :: Automatically Restart A Process Every Few Hours?

Dec 30, 2010

I'm having a VPS using Ubuntu 10.4 and i would like a guide on how to restart apache2 process every few hours (a time determined by me).

View 11 Replies View Related

Software :: Wait For One Process To Stop Before Starting Another?

Jul 13, 2011

I have a certain process (or processes) and I want to wait for them to finish before launching another one. Do I have to make a while loop checking the process for this task or is there a ready command for it?

View 3 Replies View Related

Ubuntu Installation :: Dual Boot Upgrade Hangs On Install Restart At Starting Up

Jun 5, 2010

I've been using ubuntu for a couple of years rather successfully on my dual-boot Vista/Ubuntu. It upgraded to 8.0(4?) LTS, 10.04LTS and I kept it there until this afternoon I followed the instructions on the ubuntu site to open up a terminal and update-manager --somearg to provide me with a nice little "Upgrade" button on the update manager. I clicked said button per the instructions, let it do it's downloading and whatever else it does. The last step of the installation is a system reboot. I let it do that, and then my grub menu comes up as more-or-less this:

Code:
Ubuntu 10.04 LTS, kernel 2.6.32-32-generic
Ubuntu 10.04 LTS, kernel 2.6.32-32-generic (recovery mode)
Ubuntu 10.04 LTS, kernel 2.6.24-28-generic
Ubuntu 10.04 LTS, kernel 2.6.24-28-generic (recovery mode)
Ubuntu 10.04 LTS, kernel 2.6.22-14-generic
Ubuntu 10.04 LTS, kernel 2.6.22-14-generic (recovery mode)
Ubuntu 10.04 LTS, memtest86+
Other operating systems:
Windows Vista/Longhorn (loader)

If I select the top one, I get:
Code:
Starting up ...
with a blinking cursor under the S for a LONG time (used the power switch after ~40 mins). I tried the second 2.6.32-32 option for recovery mode. It spit a bunch of gibberish to the screen for a couple seconds and then stopped, presumably doing the same thing, just with 100% more gibberish. I tried booting into Vista, that worked fine. Just to reiterate, I've not yet seen a 10 LTS login screen or desktop, and can't get one yet (just a "Starting up ...") Just to add, I did try searching, but since the only info I had to go on was 8 LTS to 10 LTS upgrade, and "Starting up ...", well those are just hard keywords to get any meaningful info.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved