Red Hat / Fedora :: Automated Service-shutdown If Load Exceeds A Defined Value?

Dec 1, 2008

i just wanna know if there is some script out there for shutting down a certain service if the load exceeds a specified value?

I've a system with a DBI-Proxy running, most of the time the systems load is about 2~3...if a DB-connection dies, the load rapidly increases (very fast) and after some seconds the load is > 200 and i'm no longer able to shut down the DBI-Proxy manually...or do anything else via ssh...

Now i wanna have a script running in background that checks the system-load permanently and stops the DBI-Proxy if the load exceeds...well, lets say 10 or whatever.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Setting Computer To Shutdown At Defined Time

Sep 27, 2010

Is in Ubuntu option, that can shutdown computer after time or at defined time? I think: I have turned on my computer and I will need to automatically shutdown computer after 4 hours or at 21.00 pm. Is there option, if computer can automatically turn on at defined time?

View 9 Replies View Related

Red Hat / Fedora :: Change The Service Load Or Boot Order On My CentOS 5.3 Box?

Jun 2, 2009

I'm running into a strange problem trying to change the service load or boot order on my CentOS 5.3 box.

The service in question is shorewall. When I go to my /etc/rc.d/rc5.d/, I notice that shorewall is listed a S27shorewall. I need it to start much later. So I run a simple command "mv S27shorewall S99shorewall"

I then restart the server. But after the reboot, something has reset it back to S27shorewall.

For those of you who like the background story: I need to change it to S99shorewall, because I need shorewall to start AFTER xend does all its stuff, as xend messes around with the underlying networking of the computer. The xend stuff was at S98 and S99...but I was able to successfully rename them back to S97 and S98, and the rename stuck. I've also renamed other service orders. Those stick. The only one that gets reset is shorewall, always back to S27. I have no clue how to tell what is causing the resetting...

View 1 Replies View Related

CentOS 5 :: Shutdown/service - Command Not Found

Aug 13, 2009

With this issue:

$ sudo shutdown -r now

sudo: shutdown: command not found

View 2 Replies View Related

General :: Make Shutdown Wait Until Service Is Stopped?

May 6, 2011

I have a third party application with a database.

I have created the service but it does not wait for the database to shutdown before the systems continues with the shutdown.

This results in the database being seen as crashed.

here is my stuff i did.

CACHE START AND STOP SCRIPT FOR REDHAT

#vi /home/cacheusr/cache_ctrl
Insert below
#!/bin/sh
#
# /etc/rc.d/init.d/cache_ctrl
# Cashier Control Script
#
# chkconfig: 2345 55 01
code....

View 9 Replies View Related

General :: Service Startip / Assign Shutdown And Reboot Privileges To The User?

Sep 17, 2009

how to assign shutdown and reboot privileges to the user.please tell directory hierarchy privileges for /root,/bin./lib,/tmp,/var,/pro etc ...

And also i would like to give space quota to particular user and directory for users.

View 4 Replies View Related

Server :: A Script To Shutdown A Service When A Sybase Table Reads Over A Certain Count?

Aug 3, 2009

Someone at work has requested if i can find out anything on the above.Been googling around as well as i have only been using Linux for 2 months now.

basically there is a SYBASE ASE installation on the server, which a tomcat based website references.They want the service to stop once a certain row limit is reached in the table.

I know i have to do a count statement on the sybase table from ISQL.But how can i create the action "service website stop" once the count value reaches 4000 ?

View 2 Replies View Related

Ubuntu Servers :: Setting Up A Load Balanced Service?

Jun 29, 2011

Im used to Win Server so Im not very familiar with ubuntu server, I want to setup a load balanced service I have three server , one as a load balancer and the other two as my web servers, now my questions is that what are the steps I need to do to setup my cluster, I dont mean the requirements, not the actual detailed configuration.

Im gonna have my Mail server on these servers, how am I gonna setup the mail server to work with the load balancer, I mean is it possible to load balance the mail server like web server on ubuntu?

View 5 Replies View Related

SUSE / Novell :: Apcusbd Service Doesn't Load At Boot Up?

Apr 4, 2010

I just installed the software for my APC UPS on my SUSE 11.2 machine. After some work I finally got it work except I have to go and start it each time I reboot. It is supposed to load automatically, but somehow mine doesn't. If I go to a command prompt as SU and type "apcupsd start" and then go look at the GUI everything shows up fine.

View 2 Replies View Related

Red Hat / Fedora :: Shows Unrecognized Service After Restart Service Smb

Feb 28, 2010

i can smb in centos 5 and i run service smb restart, it shows :smb: unrecognized service..... i run rpm -qa |grep samba,it shows

samba-common-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
.....

View 2 Replies View Related

Fedora :: Start A Service Before Network Service?

Nov 6, 2010

I need to start a service before network service How to?

View 1 Replies View Related

Ubuntu :: Automatically Load/backup Ramdisk On Startup/shutdown

Mar 4, 2011

i have a RAMdisk set up on my desktop with a hidden folder of stuff in it; but i want to know is it possible for me to set ubuntu to copy the files to another directory on shutdown, and copy back again on startup?

View 2 Replies View Related

General :: Taking Time To Load & Doesn't Shutdown Completely?

Dec 1, 2010

i have installed ubuntu ultimate edition 10.04 in my toshiba c650 recently,however it is taking too long before it startup. 2 when i log off the cursor still remain untill all power have been discharged. what could be the problem

View 5 Replies View Related

Fedora :: Shutdown Policy Triggered By Vncserver - Computer Refuses To Shutdown Normally

Feb 5, 2011

Recently I installed vncserver (tigervnc) on my desktop. Ever since my computer refuses to shutdown normally. At shutdown the following message pops up: Quote: System policy prevents stopping the system when other users are logged in Then I have to enter the root password to shutdown. If I stop vncserver before, the computer shuts down normally.

[Code]....

View 2 Replies View Related

Ubuntu :: Shutdown During Loading And Fails To Load From Win7 Boot Loader

Feb 17, 2010

I have installed the ubuntu 9.10 and the pc already have 2 win 7 OS and 1 win xp I installed the ubuntu from win xp every thing go just fine but in win 7 boat loader it detects the 2 win 7 OS , previous windows ( the xp )and the ubuntu which fails to load from win7 boot loader ( the first problem ) but it is present also in win xp boat loader so when choosing older windows the win xp bootloader let me choose between windows xp and ubuntu which works fine when choosing it the ubuntu bootloader appears with ubuntuubuntu safe modewin7 bootloader

the second problems that choosing win 7 after restarting the pc from ubuntu fail to open it begin loading with the windows logo and then just shutdown the whole pc as if i have unplugged it! the only way to let it open is to choose older windows>>> ubuntu >>>> ubuntu bootloader >>> where there is win 7 bootloader option it returns me again to win 7 bootloader but this time the windows load complete ( mostly but may shut down also!)

View 9 Replies View Related

Ubuntu Installation :: Cannot Load LiveUSB And Slow Boot After Forced Shutdown

Mar 30, 2011

I experienced what i perceive as the craziest thing during 2 years of using ubuntu. About some months ago, I have two ubuntu installed on my HP-mini netbook: ubuntu 10.04 64 bit (CAElinux) and kubuntu 10.04, and run without problem.

One day, the netbook's battery run out of charge and I forgot to plug it in. The ubuntu, as usual, went to hibernate, but without harddisk noise, so I forced it to shutdown by pressing power button (as i think it is not normal). What happened later was the partition of 10.04 was broken, it could not boot, it even affected another partition as the netbook couldn't boot kubuntu 10.04.

I try to run liveUSB and CD of both distro and the liveCD/USB boot stopped on loading screen. So I try another linux distro: PCLinuxOS, which was able to boot but took very long time. The partition of ubuntu 10.04 could not be accessed.

After installing PClinuxOS in replace of kubuntu, I scanned the ubuntu 10.04 partition and the partition was fixed, I could access the partition and could load to ubuntu 10.04, but it took very long time. Here how it loaded: first: blank screen with blinking cursor, then ubuntu load screen, then back to blank screen with blinking cursor, then it showed numbers and sentences, like some scanning works. It took long time before login screen appeared (about 10-15 minute, while the prevously normal boot time in my netbook was less than 1 minute), but once its done, the ubuntu worked normally. This also the case in the PClinuxOS and the reason it load very slowly.

After this, I try to boot the liveUSB of various linux distro, and found some could boot while the others not:

Able to load with unusual slow boot time:
PClinuxOS (latest)
Ubuntu 8.04
Fedora (latest)
Linuxmint 8 (based on ubuntu 9)

Can't load
ubuntu 10.04 and 10.10
kubuntu 10.04
latest linuxmint

The liveUSB boot could take 1 hour. I also try the latest Puppy, Gentoo and OpenSuse liveUSB but it couldn't boot, and it likely the liveUSB problem. I made the all the liveUSB with unetbootin. The ubuntu 10.04, 10.10, kubuntu and the latest linuxmint could not boot even after I scanned the ubuntu 10.04 partition. There was no problem with the liveUSB as it would load normally on another computer. I think it is just the variant of ubuntu 10 that is not being able to boot.

I was not content on this slow boot, so I try to format the two partition of ubuntu and PClinuxOS (there are another partitions though), and installed ubuntu 8. But it also happened to boot slowly as the previous ubuntu. Then I replaced it with linuxmint 8, and the same occurred. So I try to install windows on another partition, and it boot normally.

The question is, what is happening. Why do the forced-shutdown-of-ubuntu-10.04 affect another partition, to the boot of another distro? If my HD was broken, the Windows would load very slowly too right? Yes, in SMART Data (from disk utility) it showed "few bad sector", but i think this is not related to the slow boot. The ubuntu 10.04, 10.10, kubuntu and the latest linuxmint cannot boot until this moment. I am thinking there are some informations planted on my computer, that twist it to load some distro slowly, and prevent it to load some others. But where and what? (I almost arrived to the thought that this is supernatural!)

Because of my long story up there (as I think it must be reported), the conclusion is:
1. Ubuntu 10.04 on my netbook was forced shutdown (by me)
2. It caused the partition broken
3. After fixing the partition (by scan, but I forgot the command), it took very long time to boot, but the ubuntu itself run normally
4. It also affected the boot of another distro (slow down the boot time), but Ms.Windows boot time is normal
5. It also caused ubuntu 10 (and its variant) to not be able to boot from liveCD/USB
6. It also caused me going crazy

Now im gonna format the whole HD in hope of ubuntu 10.04 (and later) could boot again, but shall it fix the problem? (as formatting the previously ubuntu 10.04 partition did not solve the problem). Or should I buy another HD (or even computer) to install natty!

View 9 Replies View Related

Fedora :: Automated Mouse Cursors?

Mar 7, 2010

It there a way to enable automated mouse cursors in Fedora 12? About the only thing I miss from WinDoze is the animated hourglass cursor when I start an application by double-clicking its icon. With Fedora, I'll sometimes double-click an icon again, thinking that my first attempt didn't work, only to find that the program was loading and then I have two instances of the program.Yeah, it's a minor thing and, yeah, I can live without it, but it sure would be nice.

View 1 Replies View Related

Red Hat / Fedora :: Complete Automated Installation Using Kickstart

Jan 25, 2010

I want to install Red hat based custom OS in a complete automated mode.I ll have my kick start file inside the CD rom and when I boot with that ISO or CD.The OS should start installing by taking parameters from the kick start file without having to specify the path of the kick start file inside the CD.like "linux ks=<path>".Is it possible to achieve this by writing any script or something so that when the CD boots the kick start path is passed automatically to the anaconda installer.

View 5 Replies View Related

Fedora Networking :: Scripts To Automated FTP Login To More 20 Server

Apr 22, 2009

How do I make a scripts to automated login ftp to more 20 server at one time? From fedora to ftp X 20 linux server.

View 2 Replies View Related

Fedora :: Checking Automated FTP Script's Status (Bash)

Jan 31, 2011

I am using an automated bash script to upload some files to a remote ftp server . The script is working fine as it is , however I need to check if it uploaded the file successfully or not , so it can remove them. This is the ftp part of the script which is working fine for uploading files.

[Code]...

View 2 Replies View Related

Red Hat / Fedora :: Small Script, Which Finds The Size Of "/" And "/var" FS, If It Exceeds 80% It Should Alert?

Apr 6, 2011

I wrote a small script, which finds the size of "/" and "/var" FS, if it exceeds 80% it should alert me. The below is my script.

hname=`hostname`
FS="/ /var"
Size="80"

[code]....

View 4 Replies View Related

Fedora :: Where Are The Aliases Defined

Oct 15, 2009

Upon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.

Code:

$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'

[code]...

files had these aliases. So where are they?

View 14 Replies View Related

Ubuntu :: Karmic (amd64) - Memory Usage Never Exceeds 1gb?

Mar 10, 2010

Currently I have one instance of Avidemux indexing a 16GB mpeg2 file, another instance of Avidemux transcoding a 4.7GB mpeg2 file into an 860MB mpeg4 (by two pass encoding with fully exhaustive motion detection, extra quality filters, and a wide VBR range), vlc playing a DVD-quality avi, totem playing a DVD-quality ogm, and I'm capturing video from a pvr card.. With compiz managing the desktop (with all the most disgusting eyecandy on: wobbly windows, Atlantis, desktop sphere, experimental plugins from git, etc).My processor (3GHz Athlon x2) is completely maxed out of course... but I can't seem to raise the memory usage over "1.2GiB (16%) of 7.8 GiB"Is that normal? Is there something else I could do to test my memory capacity? (as in really usefulapplications, not just benchmarks)?Alternatively, if karmic is never going to use the rest of that memory, I might opt to run some parts of the desktop environment and/or kernel from a ramdisk.

View 9 Replies View Related

Server :: Script For Apache - Block IP When Access Exceeds

Dec 8, 2010

I need to make a script in which I want to block an ip when its access on a web server exceeds than certain number e.g., 5000 for a particular time period, let's say for 6 hours or 12. If any ip exceeds that limit, it should automatically be blocked. I also want to run this script on regular intervals in 24 hours for atleast 2 times.

View 2 Replies View Related

Ubuntu :: Selected Cylinder Exceeds Maximum Supported By Bios?

Aug 13, 2010

" Selected cylinder exceeds maximum supported by bios " I got this errot message when i tried to select Ubuntu ( 9.04 ) from a dual booting menu I dont know how to solve this problem

View 4 Replies View Related

SUSE :: Service Won't Load / When Move The Cursor, It "enters" A Bunch Of Odd Characters?

Aug 13, 2009

I am trying to run a service that listens to a port for instructions from a Windows box. It is called timetobackupservice. I use the following command to run the service ./timetobackupservice from a command line. It seems to run, indicates which port it is listening to, but then hangs up. When I move the cursor, it "enters" a bunch of odd characters and I have to close the command line window. When I check to see if the service is listening to the port (netstat -tulnap) it shows that it is not listening.

View 1 Replies View Related

Software :: RHEL5,4 Software Load Balancing For Apache Web Service

Jul 7, 2010

We need to setup a load balancer (software) for an apache web service in order to balance the load between two servers.

In explenation:

- two physical servers exist that runs a web based application (exact copy of each other)
- Real servers using Apache as the web server.
- Users need to connect to a "virtual link" whihc will then load balance across the two servers based on the host that is the least busy.

Currently using Ultramonkey, however after upgrading to RHEL5.4 , Ultramonkey is no longer supported and installations fail.

Can anyone perhaps provide me with some ideas on alternative options for this keeping in mind that the client will have to be able to manage this afterwards as well.

View 2 Replies View Related

Installation :: Error 18: Selected Cylinder Exceeds Maximum Supported By BIOS

Mar 29, 2009

I just downloaded the Fedora 10 cd yesterday and decided to install it. I had a partition for Fedora on my system before but I'm not really sure what I did to it. It wasn't booting and it has been so long since I messed with it I just decided to reinstall with the latest (I think I was running F9 previously). So I pop in the live CD, run the install, and then reboot into Ubuntu. I modified my menu.lst to include the new vmlinuz and initrd versions, as well as the new UUID of the partition. Now when I reboot and choose Fedora from grub's menu I get this error:

Quote:

Error 18: Selected cylinder exceeds maximum supported by BIOS

I found this wiki which does a pretty good job describing the problem:

[URL]

However, I'm still unable to get this to work. According to many different sites out there this problem shouldn't exist on newer computers. Well, I just recently put a new motherboard into this box -- it's this one:

[URL]

According to their BIOS page the first release of this was late November 2008. Yes they have had 2 updates since then but it looks like those only serve to support AM3 CPUs (which I don't have) or update some audio playback issues. I seriously doubt I need to update my BIOS to get this to work.

Here's my fdisk:

Code:

$ sudo fdisk -l
Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

I can get Slackware 12.1 to boot (though it kernel panics during startup...not sure what I did to make it angry), but grub immediately fails when I attempt to boot Fedora. Here's the entry from menu.lst:

Quote:

titleFedora 10 (on /dev/sdb1)
root(hd1,0)
kernel/boot/vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=178bc9f9-76ba-48aa-a588-de978cc1eee1 rhgb quiet

[code]...

I have verified that the vmlinuz and initrd are both correct. I put the UUID in there after running vol_id so I'm sure the entry is solid. I have tried making it "root=/dev/sdb1" which failed with the same error, and I even tried copying the fc10 vmlinuz and initrd files over to my Ubuntu partition (which controls grub) but for some odd reason the cp command takes a really long time and then I eventually get this weird error for initrd:

Quote:

$ sudo cp /media/sdb1/boot/initrd-2.6.27.5-117.fc10.i686.img .
cp: reading `/media/sdb1/boot/initrd-2.6.27.5-117.fc10.i686.img': Input/output error

I got the same error with the dd command too. So I was going to just try and copy the files to my sdb3 partition and then modify the menu.lst entry appropriately but that doesn't seem to be plausible at this point.

I have a motherboard that was just released about 4 months ago, an Athlon X2 6000+ CPU, and 4gigs of RAM. The drives are both SATA 300 drives...it's not like this is some old Pentium Pro and the BIOS just doesn't support large drives...this is a brand new system with a very recent BIOS version.

I have successfully quadruple booted all of these in the past, but that may have been prior to the new motherboard. So that makes me think it could be something related to the motherboard but the thing is so much newer than what I previously had, certainly that can't be the problem...can it? Then I remember that Slackware boots, so if it's truly something about how the BIOS can't access some file beyond a particular section of the disk, then it doesn't make any sense that it can book slackware. Fedora is the first partition, Slackware is the last and is like 200+ GB into the disk.

View 8 Replies View Related

Ubuntu :: Error 18 - Selected Cylinder Exceeds Maximum Supported By BIOS?

Dec 12, 2009

Error 18 - Selected cylinder exceeds maximum supported by BIOS

I am running Jaunty Jackalope on a new machine and after a recent update I got the following message when trying to reboot:

Error 18 - Selected cylinder exceeds maximum supported by BIOS

After reading some of the info on Grub error 18 I decided to create a separate boot partition, as suggested. However, when trying to use Gparted from the live CD to create some space ahead of /sda1, Gparted would run for a while and then crash. The crash message says:

"e2fsck crashed with SIGSEGV in qsort" So now I am stuck, unable to boot from HDD and unable to create new partitions (the other partitions on the disk work fine with Gparted). Could all of this be due to corrupt /sda1 partition?

View 3 Replies View Related

Fedora :: Symbol Powf, Version GLIBCXX_3.4 Not Defined?

May 21, 2011

I am using an ARM board, and Fedora 14 as development environment. Cross compiler provided by Fedoraarmv5tel-redhat-linux-gnueabi-xxxeverything on the embedded board works just fine. I have directFB working with no problems, as well as ts_lib... and a lot of software I wrote that is working fine.Recently I downloaded QT open source version and compiled fine. However when I run any demo or example I get :/usr/lib/libQTGui.so.4: symbol powf, version GLIBCXXX_3.4 not defined in file libstdc++.so with link time reference.I tried QT forum, and it has been 2 weeks waiting for an email to activate my account. in the meantime i really need to move on.

View 2 Replies View Related







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