Re: [Eug-lug]cron and mandb
Figured it out... /var was full! apt-get clean to the rescue. :) > On 20030305.1143, Rob Hudson said ... > > Looking at the man-db file in /etc/cron.daily, if I run this command: > > start-stop-daemon --start --pidfile /dev/null --startas /usr/bin/mandb \ > --oknodo --chuid man -- --no-purge > > The thing runs and runs and doesn't stop. > > The thing is that this thing used to run, along with all the other stuff > in cron.daily and didn't have this problem. So something's wrong. > Don't know what it is. > > -Rob > > > On 20030305.1110, Beaker (aka Jeff W) said ... > > > > Rob Hudson wrote: > > > Every morning when I come to my workstation at work (Debian testing), my > > > CPU is maxed out at 100%. If I look at top, I see mandb is taking up > > > 100% CPU. Looking at my process tree shows this: > > > > > > Anyone have an idea of what's going on and how I can fix it? > > > > from http://www.fifi.org/cgi-bin/man2html/usr/share/man/man8/mandb.8.gz > > > > mandb(8) > > NAME > > mandb - create or update the manual page index caches > > > > --- > > > > I'd guess that this is getting called from your daily cron file and > > isn't niced down => it hogs your cpu. Chances are you don't need to > > update your manpage DB every night... :) > > > > -beaker > ___ > Eug-LUG mailing list > [EMAIL PROTECTED] > http://mailman.efn.org/cgi-bin/listinfo/eug-lug ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron and mandb
Looking at the man-db file in /etc/cron.daily, if I run this command: start-stop-daemon --start --pidfile /dev/null --startas /usr/bin/mandb \ --oknodo --chuid man -- --no-purge The thing runs and runs and doesn't stop. The thing is that this thing used to run, along with all the other stuff in cron.daily and didn't have this problem. So something's wrong. Don't know what it is. -Rob > On 20030305.1110, Beaker (aka Jeff W) said ... > > Rob Hudson wrote: > > Every morning when I come to my workstation at work (Debian testing), my > > CPU is maxed out at 100%. If I look at top, I see mandb is taking up > > 100% CPU. Looking at my process tree shows this: > > > > Anyone have an idea of what's going on and how I can fix it? > > from http://www.fifi.org/cgi-bin/man2html/usr/share/man/man8/mandb.8.gz > > mandb(8) > NAME > mandb - create or update the manual page index caches > > --- > > I'd guess that this is getting called from your daily cron file and > isn't niced down => it hogs your cpu. Chances are you don't need to > update your manpage DB every night... :) > > -beaker ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron and mandb
Rob Hudson wrote: Every morning when I come to my workstation at work (Debian testing), my CPU is maxed out at 100%. If I look at top, I see mandb is taking up 100% CPU. Looking at my process tree shows this: > Anyone have an idea of what's going on and how I can fix it? from http://www.fifi.org/cgi-bin/man2html/usr/share/man/man8/mandb.8.gz mandb(8) NAME mandb - create or update the manual page index caches --- I'd guess that this is getting called from your daily cron file and isn't niced down => it hogs your cpu. Chances are you don't need to update your manpage DB every night... :) -beaker ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron
One more comment: avoid runnig other large processes (like backups) while your cron.daily is running (often defaults to 2..4 am). Log rotation and analysis of large log files may interfer with a process that works on the same files. My preference for crontabs is to keep and edit them as regular file(s) and start them with crontab [-u root] crontabFileName (the -u option was suggested on older systems when you su into root as another user... it just became a habbit) ... Horst On Mon, 16 Dec 2002, Rob Hudson wrote: > Ah, so I don't need the user to run as in a user specific cron? Make > sense. Thanks. > > > On 20021216.2203, Bob Miller said ... > > > > Rob Hudson wrote: > > > > > I'm trying to get a shell script to run every Saturday morning at 4am. > > > Instead of editing /etc/crontab like I usually do, i thought I'd set it > > > up in my user crontab. > > > > > > I ran crontab -e as my user, and added the following: > > > > > > 0 4 * * 6 rob /home/rob/bin/bkup > > > > > > Which runs my backup script. Is there something else I need to do? The > > > timestamps on the files say it didn't run this weekend. > > > > Remove the word, "rob", unless you have a command called rob in the > > system's default path. > > > > You should have been mailed an error when rob was not found -- is mail > > set up on this machine? > > > > -- > > Bob Miller K > > kbobsoft software consulting > > http://kbobsoft.com [EMAIL PROTECTED] > > ___ > > Eug-LUG mailing list > > [EMAIL PROTECTED] > > http://mailman.efn.org/cgi-bin/listinfo/eug-lug > ___ > Eug-LUG mailing list > [EMAIL PROTECTED] > http://mailman.efn.org/cgi-bin/listinfo/eug-lug > ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron
Crond re-reads crontabs once a minute at the top of minute Linux Rocks ! ([EMAIL PROTECTED]) wrote*: > >I thought crontab had a parameter to reload.. but I didnt find one... however >I seem to remember having to hup crond to get it to re-read crontabs. I >belive crond only reads crontabs only at start... > >man crond for great justice > >Jamie > >On Monday 16 December 2002 09:34 pm, Rob Hudson wrote: >: I'm trying to get a shell script to run every Saturday morning at 4am. >: Instead of editing /etc/crontab like I usually do, i thought I'd set it >: up in my user crontab. >: >: I ran crontab -e as my user, and added the following: >: >: 0 4 * * 6 rob /home/rob/bin/bkup >: >: Which runs my backup script. Is there something else I need to do? The >: timestamps on the files say it didn't run this weekend. >: >: Thanks, >: Rob >: >: ___ >: Eug-LUG mailing list >: [EMAIL PROTECTED] >: http://mailman.efn.org/cgi-bin/listinfo/eug-lug > > >___ >Eug-LUG mailing list >[EMAIL PROTECTED] >http://mailman.efn.org/cgi-bin/listinfo/eug-lug > -- Bob Crandell Assured Computing When you need to be sure. Voice 541-689-9159 FAX 240-371-7237 [EMAIL PROTECTED] www.assuredcomp.com Eugene, Or. 97402 ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron
Ah, so I don't need the user to run as in a user specific cron? Make sense. Thanks. > On 20021216.2203, Bob Miller said ... > > Rob Hudson wrote: > > > I'm trying to get a shell script to run every Saturday morning at 4am. > > Instead of editing /etc/crontab like I usually do, i thought I'd set it > > up in my user crontab. > > > > I ran crontab -e as my user, and added the following: > > > > 0 4 * * 6 rob /home/rob/bin/bkup > > > > Which runs my backup script. Is there something else I need to do? The > > timestamps on the files say it didn't run this weekend. > > Remove the word, "rob", unless you have a command called rob in the > system's default path. > > You should have been mailed an error when rob was not found -- is mail > set up on this machine? > > -- > Bob Miller K > kbobsoft software consulting > http://kbobsoft.com [EMAIL PROTECTED] > ___ > Eug-LUG mailing list > [EMAIL PROTECTED] > http://mailman.efn.org/cgi-bin/listinfo/eug-lug ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron
Rob Hudson wrote: > I'm trying to get a shell script to run every Saturday morning at 4am. > Instead of editing /etc/crontab like I usually do, i thought I'd set it > up in my user crontab. > > I ran crontab -e as my user, and added the following: > > 0 4 * * 6 rob /home/rob/bin/bkup > > Which runs my backup script. Is there something else I need to do? The > timestamps on the files say it didn't run this weekend. Remove the word, "rob", unless you have a command called rob in the system's default path. You should have been mailed an error when rob was not found -- is mail set up on this machine? -- Bob Miller K kbobsoft software consulting http://kbobsoft.com [EMAIL PROTECTED] ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
Re: [Eug-lug]cron
I thought crontab had a parameter to reload.. but I didnt find one... however I seem to remember having to hup crond to get it to re-read crontabs. I belive crond only reads crontabs only at start... man crond for great justice Jamie On Monday 16 December 2002 09:34 pm, Rob Hudson wrote: : I'm trying to get a shell script to run every Saturday morning at 4am. : Instead of editing /etc/crontab like I usually do, i thought I'd set it : up in my user crontab. : : I ran crontab -e as my user, and added the following: : : 0 4 * * 6 rob /home/rob/bin/bkup : : Which runs my backup script. Is there something else I need to do? The : timestamps on the files say it didn't run this weekend. : : Thanks, : Rob : : ___ : Eug-LUG mailing list : [EMAIL PROTECTED] : http://mailman.efn.org/cgi-bin/listinfo/eug-lug -- No microsoft products were used to produce this message. EUG-LUG Mailing List: http://mailman.efn.org/cgi-bin/listinfo/eug-lug ___ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug
