Ubuntu :: Stop A Cron Job After So Long?

Nov 18, 2010

Is it possible to set a cron to run for so long and then end it automatically?

View 4 Replies


ADVERTISEMENT

Ubuntu :: How To Stop Logging Cron To Syslog

Mar 2, 2011

There was an useful discussion on "how to stop logging cron to syslog". The useful answer is to update the line targeting syslog in /etc/syslog.conf to say something like:

Code:
*.*;auth,authpriv.none,mail.none,cron.none -/var/log/syslog
the significant part being that cron.none means that cron will not log to syslog.

There was discussion about whether this was a good thing to do, but omitted to suggest that adding/ uncommenting the following line would mean that no information would be lost but that syslog would be less cluttered as a source of monitoring info:

Code:
cron.* -/var/log/cron.log

You've still got all your cron-related log items available in cron.log if and when you need them. To make the new /etc/syslog.conf lines effective you should also, with root privileges:

Code:
touch /var/log/cron.log
chown syslog:adm /var/log/cron.log
and restart syslog. In my case:

Code:
/etc/init.d/sysklogd restart

View 4 Replies View Related

General :: Stop All Instances Of Cron?

Oct 28, 2010

I have a cron job that executes a rake task in rails. I noticed in the log that it was running the task 4 times everytime it was executed. The problem is that there are 4 instances of cron running.

I ran code...

So my question is how do I stop the other instances. When I run the stop command now I get this:

Stopping crond: cannot stop crond: crond is not running. [FAILED]

Any ideas? Do the other instances have different names? Is there a way to kill all instances as once?

View 2 Replies View Related

General :: Secure Box - Authentication Failure - Long Strong Password Can Stop To Prevent From Attacks?

Mar 17, 2010

we are using linux email server axigen past few years. we keep port open ssh and pop,smtp webmail etc. ssh use for remote trouble shooting. so through firewall it is globally accessable. we notice many attacks coming to our machine, also some people try to enter in our system but failure. as example see below a log come in messages file

Mar 17 09:19:50 sa1 sshd(pam_unix)[21231]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=210.51.13.120 user=root how we can secure more. as per my understanding only good long strong password can stop to prevent from attacks.

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

Ubuntu :: File System Check Failed A Long Is Being Saved /var/long/fsck/checkfs

Jan 9, 2010

just start Ubuntu 9.04 said: File system chek failed a long is beging saved /var/long/fsck/checkfs if that location is writable Please repair the file systmen manually A maintenance shell will now be started Ctr+ D terminate this shell and resume system boot. Give root password for maintenance or type Control +D to continue. I did Ctr+D , and after login said , that can not find /home. I starte with the live cd:

[Code]....

View 9 Replies View Related

Ubuntu Servers :: Cron Sending Email From Address / Change The Default Domain Name For Cron?

Apr 29, 2011

Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com

this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.

View 1 Replies View Related

Ubuntu Installation :: Cron's /etc/cron.daily/apt Not Upgrading?

Feb 25, 2010

It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:

Code:

ps -A | grep apt

showed it for a long time,

Code:

sudo tcpdump tcp

showed communication with canonical sites,

but:

Code:

top

did not show any apt using CPU

[code].....

View 2 Replies View Related

Ubuntu :: Do Cron Updates Erase Cron Entries

Sep 19, 2010

I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.

View 2 Replies View Related

Fedora :: No Output From Cron Jobs In /etc/cron.daily

Jan 29, 2011

I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).

The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.

The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.

I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)

View 3 Replies View Related

CentOS 5 :: Setup A Cron In /var/spool/cron/root

Feb 16, 2010

I have set up a cron in /var/spool/cron/root

*/15 * * * * /usr/bin/phplist.sh

I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.

If I run /usr/bin/phplist.sh right in the shell it works great.

View 3 Replies View Related

Software :: Vixie-Cron Not Running /etc/cron.d/

Feb 9, 2011

Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.

Code:

View 2 Replies View Related

CentOS 5 :: X/Gnome Takes Long Time To Load And Sudo Takes Long Time To Execute

Oct 13, 2009

I am running Centos 5.3. I ran no updates, performed no installs, nor changed any configuration immediately prior to this issue. My problem is this: when I run the command startx (default runlevel 3), it is a long time (5-10 minutes) before Gnome startx, and once it does start applications will not run. Also, when I try to use sudo (from any environment, even ssh), it is a long time (5-10) before the command is executed.

I cannot say for sure, but it seems like this is an intermittent problem. Sometimes X takes a long time to start, but once it starts it will launch programs. Sometimes X takes a long time to launch, but once it starts it will only launch certain programs. Though presently X always takes a long time to start, and I cannot successfully launch any programs.

A while back a had a similar problem to this (x taking long time to start, sudo taking long time to execute) and it ended up being a DNS problem. Unfortunately, I cannot remember exactly what it was and I stupidly did not document it. Maybe this is also DNS related, I don't know.

I don't know what log files to look at for problems with X, Gnome, and sudo taking a long time to start.

View 19 Replies View Related

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

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

Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

Ubuntu :: CPU At 98% Long After Ripping CD?

May 14, 2010

The fan on my laptop is constantly running after ripping a track from CD. Entering "top" into terminal reveals this:

Code:
top - 12:20:13 up 1:01, 2 users, load average: 1.21, 0.96, 0.49
Tasks: 128 total, 3 running, 125 sleeping, 0 stopped, 0 zombie

[code]....

View 1 Replies View Related

Ubuntu Installation :: OpenLDAP Slapd / Can't Stop The Service With Service Slapd Stop?

Oct 20, 2010

I am trying to setup LDAP server on Ubuntu 10.04 and am sticking to the old /etc/ldap/slapd.conf file configuration.

I had to comment ldapi:/// from /etc/default/slapd since it was giving 'Address already in use error'. Also had to juggle with pid directory and file issues

After that I was able to start the slapd daemon (service slapd start) but now I am running into multiple issues:

1. Can't stop the service with service slapd stop

Code:
## Service stop returns 0, maybe because start-stop-daemon is not giving error
#service slapd stop
Stopping OpenLDAP: slapd.
# echo $?
0

Will switching to BDB database resolve this ?Also can't I slapcat at non-root user ??

View 2 Replies View Related

Ubuntu :: Kernel Package Name Too Long?

Jan 21, 2010

I've been compiling customized kernel packages for ubuntu and I've noticed that the final debian package output from running the command:

# fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers

returns a couple of packages with a very long package name which looks similar to this:

linux-headers-2.6.32.1-custom_2.6.32.1-custom-10.00.Custom_i386.deb
linux-image-2.6.32.1-custom_2.6.32.1-custom-10.00.Custom_i386.deb

Is there a way or a workaround to reduce the filename length to a shorter format?

View 3 Replies View Related

Ubuntu :: Quite Long Boot On New Machine?

Jul 12, 2010

considering the claims on the ultra-fast-boot in new Ubuntu versions, I think my 1-2 minutes boot on a brand-new laptop (SONY Vaio CW2C5E) is quite slowish. I noticed that before the Ubuntu splash screen comes up, the screens stays black for 30 seconds with a blinking cursor. I also found a 20-second gap in dmesg which I can't explain:

Code:
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-7-generic (buildd@crested) (gcc version 4.4.4 (Ubuntu 4.4.4-6ubuntu2) ) #12-Ubuntu SMP Fri Jul 9 21:54:03 UTC 2010 (Ubuntu 2.6.35-7.12-generic 2.6.35-rc4)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.35-7-generic root=UUID=fe1a051b-27ef-43bd-88c8-fbfd8f3d4e7f ro quiet splash

[Code]...

View 5 Replies View Related

Ubuntu :: Long Boot Dropping To Tty?

Sep 29, 2010

Lately about half the time I boot up on 9.10 it stays at the tty & asks for my login & password. It will just stay there for about a minute or so & thenboot up normally whether I enter anything or not. I have it set for auto-login & it never was a problem before. Some times it boots up normally without going into the login screen at all. The only thing that is different is one of the 5 year old kids I let use the computer for the internet & the computer doesn't always get shut down right(turn the power off). I suspect that has caused the problem but it happens now even when I know its been shut down right.

View 1 Replies View Related

Ubuntu :: No Updates Since A Long Time

Jan 2, 2011

Im not receiving any package updates since a month in my update manager.Is it the same for everybody?

View 9 Replies View Related

Ubuntu :: Wake Up From Hibernate Takes Too Long?

Jan 16, 2010

I am having a problem with a slow wake up from the hibernate in karmic with gnome.My desktop has 2GB of ram and 4GB of swap.m doing standard hibernate from the menu.Hibernation takes 44s, which I can live with for now. But wake up measured from grub boot menu to unlock dialog takes 2m 47s. I think it's reasonable to expect it to take less than a minute.

View 1 Replies View Related

Ubuntu Installation :: Get A Long List Of I/o Errors

Jan 20, 2010

The image disk boots OK and comes to the screen that gives the option to try or install. I opted for the "try Ubuntu" once, but got a long list of i/o errors. Tried the install option, and same thing. The install did get to an apparent Ubuntu background, but never any further prompts. Is the iso bad? I'm trying to install on a Dell Inspiron 7500. Currently has Win2000 loaded.

View 4 Replies View Related

Ubuntu :: Timing How Long A Program Is Running

Apr 19, 2010

I'm looking for a way to time how long a program runs in the terminal. I didn't have any luck searching around but I'm sure it's possible. Does anyone know of the easiest way to do this?

View 2 Replies View Related

Ubuntu :: GUI Taking Long Time To Load?

May 3, 2010

in ubuntu 10.04 After logging in t All I had was the wallpaper & my widgets for around a minute, and then the usual upper and lower panels appeared.. didnt had this problem in 9.10

View 4 Replies View Related

Ubuntu :: 10.4 LTS - Leave The Computer Long Enough For The Screensaver To Come On

May 24, 2010

I've just upgraded to 10.4 LTS

First thing i notice is that if i leave the computer long enough for the screensaver to come on, when i want to start work again it requires the user password. It never used to do that and its a nuisance. There is no option to remember it that i can see either. How do i stop it asking for a password every time?

Secondly, i want some thing like the "my computer" facility. I tried setting up an icon using gsconfig - the icon is now on the desktop" - it says "browse all local & remote disks connected to this computer". When i click on it i get an icon saying file system. When i open that i get quite a lot of folders displayed. But what i'm trying to locate is the USB memory stick i have plugged in.. i can't find it..

I also tried setting it up as recommended on a site i found, by right clicking the top left icon on the desktop to get into edit menus. But i dont get that option, or the help option. i just get: about remove from panel move lock to panel.

View 4 Replies View Related

Ubuntu :: Gnome Menu Bar Takes Long To Appear?

Jun 12, 2010

I am running Ubuntu 10.04 Lucid, and it works perfectly.However, since last week (probably after some update), the gnome menu bar takes much longer to appear when I login. After it appears, it works just fine.To clarify, I turn on the system, login, the desktop background image and icons appear, and only after about 30 seconds the upper and lower gnome menu bars appear (a week ago all of it loaded almost instantly).

View 1 Replies View Related

Ubuntu :: 10.04 Takes A Long Time To Boot Up?

Jul 26, 2010

After I installed a new hard drive, when I booted up into Ubuntu, it would give me this error: "failed command: WRITE DMA". So I tried the workarounds and I guess it just covered the log with the Boot Splash, now it's taking a long time just to boot up.

View 9 Replies View Related

Ubuntu :: Take So Long For New Kernels To Be Added To Repositories?

Aug 3, 2010

The newest kernel in the repositories is currently 2.6.32-24, while on [URL]... you can already download a .deb of the 2.6.35 kernel. Why does it take so long for new kernels to be added to the repositories?

View 3 Replies View Related

Ubuntu :: Very Long Login Time In Lucid

Nov 11, 2010

My machine is taking ages to get from the login screen after booting to actually showing the gnome desktop (as in, over a minute). The bootchart is at golg-lucid-20101111-1.png

View 1 Replies View Related







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