I just found out that Mondorescue won't run via Cron on my Box. Here's a little example of what I did:

1. I put an entry into Cron(via Webmin) to start a Mondo Rescue session about 4 minutes from now.


2. My 'crontab -e':


1 12 * * 1 /usr/local/share/mondo/mondoarchive -Oi -d /mnt/test -F -E "/mnt/test" -0

3. It's now 1 minute past when Mondo Resuce should have started, my 'ps -ef':

UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Aug21 ? 00:00:04 init
root 2 1 0 Aug21 ? 00:00:00 [keventd]
root 3 1 0 Aug21 ? 00:00:00 [kapmd]
root 4 1 0 Aug21 ? 00:00:00 [ksoftirqd_CPU0]
root 5 1 0 Aug21 ? 00:00:11 [kswapd]
root 6 1 0 Aug21 ? 00:00:00 [bdflush]
root 7 1 0 Aug21 ? 00:00:00 [kupdated]
root 8 1 0 Aug21 ? 00:00:00 [mdrecoveryd]
root 12 1 0 Aug21 ? 00:01:09 [kjournald]
root 130 1 0 Aug21 ? 00:00:00 [kjournald]
root 555 1 0 Aug21 ? 00:00:08 syslogd -m 0
root 560 1 0 Aug21 ? 00:00:00 klogd -c 1 -2
nobody 831 1 0 Aug21 ? 00:00:00 [proftpd]
root 849 1 0 Aug21 ? 00:00:00 crond
root 867 1 0 Aug21 ? 00:00:00 smbd -D
root 872 1 0 Aug21 ? 00:00:20 nmbd -D
root 893 1 0 Aug21 ? 00:00:00 clarkconnectd
nobody 913 1 0 Aug21 ? 00:00:23 [dnsmasq]
root 939 1 0 Aug21 ? 00:00:17 netwatchd
suva 1047 1 0 Aug21 ? 00:00:00 /usr/local/suva/bin/suvad
root 1107 1 0 Aug21 ? 00:00:00 webconfig -f /var/webconfig/conf
root 1120 1 0 Aug21 tty1 00:00:00 console
root 1122 1 0 Aug21 tty3 00:00:00 /sbin/mingetty tty3
root 1123 1 0 Aug21 tty4 00:00:00 /sbin/mingetty tty4
root 1124 1 0 Aug21 tty5 00:00:00 /sbin/mingetty tty5
root 1125 1 0 Aug21 tty6 00:00:00 /sbin/mingetty tty6
root 1128 1120 0 Aug21 tty1 00:00:00 /usr/bin/logger -p local1.info -
root 1137 1120 0 Aug21 tty1 00:00:00 /usr/bin/whiptail --clear --titl
root 1839 1 0 Aug21 tty2 00:00:00 /sbin/mingetty tty2
root 2150 1 0 Aug21 ? 00:00:03 /usr/sbin/dhcpd eth1
root 31648 1 0 Aug26 ? 00:00:01 /usr/bin/perl /usr/libexec/webmi
root 16244 1 0 Sep11 ? 00:25:53 snort -D -c /etc/snort.conf
root 16702 1 0 Sep11 ? 00:00:00 squid -D
squid 16704 16702 0 Sep11 ? 00:16:55 [squid]
squid 16707 16704 0 Sep11 ? 00:00:08 (unlinkd)
root 30208 1 0 Sep16 ? 00:00:02 /usr/sbin/sshd
502 12347 1107 0 Sep21 ? 00:00:00 [webconfig]
502 9777 1107 0 Sep21 ? 00:00:00 [webconfig]
root 28553 30208 0 12:06 ? 00:00:00 /usr/sbin/sshd
root 28554 28553 0 12:07 pts/0 00:00:00 -bash
root 28878 28554 0 12:13 pts/0 00:00:00 ps -ef

it's not there.


4. Here is what my cron log has printed:


Sep 22 12:10:00 jantz CROND[28628]: (root) CMD (/etc/mrtg/mrtg_run; /usr/bin/mrtg /etc/mrtg/mrtg.cfg >/dev/null 2>/dev/null)
Sep 22 12:10:00 jantz CROND[28629]: (root) CMD (/usr/local/clarkconnect/scripts/servicewatch >/dev/null)
Sep 22 12:11:01 jantz CROND[28743]: (root) CMD (/usr/local/share/mondo/mondoarchive -Oi -d /mnt/test -F -E "/mnt/test" -0)
Sep 22 12:13:05 jantz crontab[28875]: (root) BEGIN EDIT (root)
Sep 22 12:13:24 jantz crontab[28875]: (root) END EDIT (root)


It looks like it started but according to the 'ps -ef' it's not there. I also expected mondo.scratch and tmp.mondo directories in the directory where the ISO is being written but see none.


Now if I have the Cron entry for Mondo Rescue started immediately, it runs. If I manually type it in the terminal, it runs. But it won't run via a scheduled Cron. I did try the a cron script that was listed on the Mondo Rescue site and got the same thing. I also did a Google search several times for this problem but didn't find anything relevant.


Thanks,
Kent


-- [EMAIL PROTECTED] mailing list



Reply via email to