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


ADVERTISEMENT

Networking :: Create A Script Which Checks For The 2 Process And Restart It Automatically?

Mar 11, 2010

There are two host agent process ( hprsmha -WD and RSMHA ) running on my SLES 10 server suddenly hangs which is critical for my daily scheduled backup jobs.I want to create a script which checks for the 2 process and restart it automatically.so i can put it to daily cron job.My knowledge with scripting is so poor. Following are the commands i am running manually to stop and start the process.

cd /etc/init.d
./hprmsha stop
./hprsmha_wd stop
./hprsmha_wd start
./hprsmha start

View 4 Replies View Related

Ubuntu Installation :: Auto Restart Every 12 Hours

Dec 6, 2010

I am a new user of linux platforms ( i have ubuntu 10.04) and i am totally satisfied from this platform .You can do everything you want without needing previous linux or programming experience.I have the following question.Is there any bash script that makes an auto restart to the computer every 12 hours without needing my credentials to enter to the OS?

View 5 Replies View Related

Ubuntu Installation :: System Automatically Tried To Restart But On The Restart Got The 'terminal' View

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

General :: Do Not Automatically Restart On System Failure

May 13, 2011

I need to know: how do not automatically restart GNU/Linux after a critical system failure(kernel panic). For some reason the pc is rebooted, actually throws the error screen Reboot just moments before, but I can't to read it before you reboot.

View 1 Replies View Related

Programming :: Process More Than 3 Hours Old From Shell Command?

Nov 14, 2010

My server pretty often becomes full up php processes running which are not needed. Is there a way to search for and kill any php process that is more than 3 hours old?

View 7 Replies View Related

Ubuntu :: System Clock Automatically Advances 6 Hours

Jan 20, 2010

Hi!

I've been frustrated with several problems I've been experiencing with Karmic Koala. The one I'll mention in this post is the fact that it randomly decides to adjust the system clock ahead 6 hours. I believe this began happening when I set the location for the system time that displays in the top panel. I'm guessing that the 6 hours is the fact that I'm in the US Central Time zone.

View 4 Replies View Related

General :: Restart Rhe Server Automatically Starts To Work

Mar 1, 2010

some times network disconnected automatically. if we restart rhe server it automatically starts to work. again 2 or 3 days, the same senario is happening. on this server 2 database is running, it makes lot of problem to us. what will be the problem? is any connection parameter is there? (ie i mean only 50 numbers of client connection is only allowed like.) or any problem in NIC card or NIC driver.

View 4 Replies View Related

Programming :: Kill Process More Than 3 Hours Old From Shell Command?

Nov 15, 2010

My server pretty often becomes full up php processes running which are not needed.Is there a way to search for and kill any php process that is more than 3 hours old? as I understand it, i need to use ps piped with awk. awk at the moment seems very complicated to me, do not how to start tackling it.

View 5 Replies View Related

Debian Configuration :: Computer Reboot Automatically Each 4 Hours 30 Minutes

Jul 30, 2015

I've an Blade 1500, sparc64 IIIi with 2 hard disks and 2go of RAM. The computer run with debian 7.7.0 and BSD (opensxce) for each hard disks.

1/ When it's run under BSD there are no problems, the uptime are on many hours.
2/ when it's run under debian with XFCE x-window, the uptime is 4 hours 30 minutes and computer reboot automatically !

Into the control panel i've deactivate the hibernation, screensaver and power management ! I want to find the files for manage the time down. I think that the problem is in XFCE window manager.

View 0 Replies View Related

OpenSUSE :: Date And Time Automatically Adjusted 4 Hours Back

Jun 22, 2011

I have a switch tray on my computer and I installed opensuse in one of the hard drives that I have but as I switch between the windows hard drive and opensuse the time changes all the time. For example it's 10pm right now and if I switch the hard drive to opensuse the time automatically gets adjusted 4 hours back and then I fix it and when I switch back to my windows hard drive the time goes forward 4 hours. I check both region settings and they are both set to NY Eastern time. Why is it doing this?

View 2 Replies View Related

General :: Kill Zombie Process - Cannot Restart The Service

Aug 7, 2010

I have a process that I cannot kill with kill -9 how to go about this?

[Code]...

It is an openvpn process but I cannot retsrat the service as I alreday have another openvpn service running on the server so when I do openvpn service restart, it won;t know which service to restart.

View 3 Replies View Related

General :: Reattaching To Same Address Space On Process Restart?

Feb 17, 2011

Suppose a process creates multiple shared mem segments as part of it job.Now is it always possible that on restart, that process can reattach to those previously created shared mem segments to the same virtual address spaces (returned on first time creation) ? My intention is use pointers over shared memory.So on restart I want those pointers absolute value to remain valid.

View 1 Replies View Related

General :: Start Process Automatically?

Jul 7, 2010

I want to start process automatically For Ex:- To start snort it need the root user, So here I need a script which will start snort automatically without asking the root user or password.So that I can start snort from anywhere as same as root

View 3 Replies View Related

General :: Bring Up System Recovery Durin The Restart Process?

Aug 28, 2010

I have forgotten my administrative password and am locked out of my system. I have an HP Mini 1120NR and I am running Edubuntu software. I cannot remember which key I need to press during the restart process to bring up the system restore/recovery option.

View 9 Replies View Related

General :: Triggered Process - Start Automatically When The Desktop Finishes Loading

Jun 29, 2011

I am running Debian Squeeze with icewm as desktop environment. I am trying to start feh automatically when the desktop finishes loading. I have tried crontab -e with @reboot /usr/bin/feh /home/user/photos/ & I think that the best way to do this would be to monitor for the x-session-manag process. The reason I think this would be a good solution is that I killed x-session-manag and it killed my x-session and straight to command line interface.

View 2 Replies View Related

General :: Create Cron Tab When DSL Line Down Set Automatically Restart The Network Service While DSL Line Up?

Oct 7, 2010

How to create cron tab when DSL line down set automatically restart the network service while DSL line up?

View 3 Replies View Related

Ubuntu Installation :: Process Hanging For ~24 Hours With "copying Files" At 63%

Aug 23, 2010

I am installling ubuntu on my old (2003) Dell D800 laptop with celeron processor, using a CD (burned at home). The installation process is hanging for about 24 hours now; it says "copying files..." with progress at 63%. The progress has not changed for about 10 hours.

I have a single hard drive on the machine (... noticed issues with dual drives on this forum, so thought I'd mention).

View 1 Replies View Related

OpenSUSE :: Restart Automatically A Service?

May 27, 2010

I have a box Suse 11.1 with a service that (I dont know why) every day stop at the same time. Im finding why it come to a halt but in the meantime I would like restart it automatically.As root I insert in crontab the line:25 16 * * * /etc/init.d/service startBut it don works
If I launch manually /etc/init.d/service start (or stop) it works

View 3 Replies View Related

Ubuntu :: Automatically Restart Firefox If Closed?

Apr 7, 2010

For a kiosk scenario, I run this script to close & restart Firefox when the screensaver is activated (the monitor also goes to sleep).I want to run a loop that, if Firefox is closed, it will automatically re-open. Is there a way to use dbus-monitor to accomplish this?Quote:

#!/usr/bin/perl
my $cmd = "dbus-monitor --session "type='signal',interface='org.gnome.ScreenSave r', member='ActiveChanged'"";

[code]....

View 4 Replies View Related

Ubuntu :: Automatically Restart A Program On Close?

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

Fedora Networking :: Configure Pppoe In 11 & Make It Work Automatically After Restart?

Jun 13, 2009

My network is windows pppoe. How can I configure it for Fedora 11? Is there any graphical configuration tool available for that? Also, ubuntu 9.04 logs into pppoe network after restarting as I've made some changes in /etc/network/interfaces. Is there any option available for Fedora 11 to automatically log in to pppoe network after restarting?

View 4 Replies View Related

CentOS 5 Hardware :: Service Network Stop Automatically - Restart In Cron Tab

Jan 23, 2011

I am using
# uname -rmi
2.6.18-194.26.1.el5PAE i686 i386

# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5 (Tikanga)
CentOS release 5.5 (Final)

I have noticed that after few days of ideal system it will stop its network interface. To resolve this I have to login to the machine it self and then issue
# service network start
Is this a feature. If this is not a feature then what is this. As an workaround I am thinking of adding service network restart in cron tab for everyday in night when I am not using it.

View 6 Replies View Related

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

Software :: Restart Apache2 Process Every 10 Mins To Clear /tmp Directory?

Aug 31, 2009

I have been working on this for a few hours now and still haven't been able to track down whats going on. I just switched servers and put a fresh debian install on with apache2 + custom suexec + php5(fcgi). now when i upload a file to the site it wont upload, so i tracked down the issue. its the /tmp directory that root tmp. its at 100% so i restart the /etc/init.d/apache2 process and the /tmp directory is automagically cleared to 20% used and i can upload again. so i figure ok its got to be a setting. i looked in all the conf files conf.d the php5 conf files and no where do i have a /tmp directory set. so i think OK I can build a cron to clear the tmp directory every 10 mins till i find the issue, but alas, when i go into the tmp directory There are NO files to delete!!! wtf. holy crap. and all that goodness, this is crazy, how can you have a tmp directory that is not being written to, from all i can see, so i think ok it might be a hard link, i checked, in all root and sub root directories no hard links to tmp, no soft links to temp either. and if i sit in my /tmp directory and do a df -h after some uploads its going from 20% so 23% and up, but i do ls -alh and nothing, then ls -al and watch bytes, nothing , so this is very strange. has anyone encountered something like this? is it possible that this is a hard link thats hidden somewhere or some other extreme function i have never heard of?

View 8 Replies View Related

Ubuntu :: Killing All The Process On Restart/halt/shutdown Instead Waiting For Scripts?

May 9, 2010

I haveing a big problem atm (just after to upgrade to 10.04). I have a simply and easy script that sent a halt command to every KVM virtual machine actually running into the server. this script is/and was) palced as a init-rc script in rc0/rc1 and rc6 lvls. Just after to upgrade, I have noticed that this script is executed but the system ignore the time that it require to finish (giving time to correctly stop a single virtual machine). Aftert 5 second it start sending SIG-TERM and SIGN-KILL to any currect process and then reboot/halt.

I have just done a new script using upstart and I got just the same result. What is happending? why is the waiting the init secuence for a valid/or_not termination of any init script. I am so sorry for this crap english I have never study this language so I try to do my best anytime I speak it (or try ti..).

View 9 Replies View Related

Ubuntu Installation :: 11.04 LiveCD Boot - Win7 Recovery Process On Restart

Jun 16, 2011

I wanted to put 11.04 on my wife's Win 7 Toshiba laptop so thought I would live boot and see everything worked first. Well it does seem to but I didn't have time to install it then so just shut down. Well on restarting without CD in it failed to boot windows and had to let the recovery process fix it. Now I want to set it up for dual boot at least to start with so until I can get some answers I don't want to risk it. Is there some problem with win 7? Will I be able to shrink the Win7 partition to put ubuntu on? Will Win 7 have an error each time she boots it after 11.04 is installed and run?

View 5 Replies View Related

Applications :: TCPdump Setup To Automatically Start Process Again

Jul 1, 2010

We are having a Linux box with Tcpdump continuously running on it to monitor bunch of sources. Separate Tcpdump process runs in a background for each host for monitoring traffic. I use -w option with it to save the capture in the pcap format to analyze it later. Now what I need is, if the Linux machine gets rebooted amidst of its packet capturing activity, I want tcpdump to automatically start the process again for every host without overwriting previous captures.

Remember: Without overwriting previous captures . . .
Basically, I will be keeping all the tcpdump commands in the shell script and will load the script at startup during the linux boot. Is there any way to achieve this case, where by on rebooting, Tcpdump does not overwrite previous captures?

View 2 Replies View Related

Software :: Zombiee Process + Postfix Stops Automatically?

May 12, 2010

i have around 15 zombiee process on my linux ubuntu server 9.10 and i am unable to login I get the system details after i login but the shell promot comes back to login prompt again.My postfix server also stops in between and i have to reboot the entire system.

View 4 Replies View Related

Slackware :: Process To Automatically Start Bittorrent Download?

Apr 26, 2010

this is not specifically a slackware related question, but since done on 2 slackware boxes... the situation is, i have one box for browsing and other desktop activities and another box acting as router/local server. what i want to achieve is that the router box would look on a nfs mounted folder for new *.torrent files (which i put there from the desktop box) and if there is a new file, it would start downloading it automatically. also a good thing would be if it would notify me when finished.so how would you go about itwhat torrent client would you use and so on? maybe someone has already done something like this?

View 4 Replies View Related







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