fetchmail sceduling

fetchmail sceduling

am 10.10.2003 08:54:16 von Sarvesh Singhal

Hi,

We shut down the systems in the evening and so next day I have to again run
fetchmail to run in daemon mode. I tried using cron so that next day it
starts. but it does not works rather I have to manually run the fetchmail
command to start trhe fetchmail in daemon mode

Please help!!


SS

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: fetchmail sceduling

am 10.10.2003 09:57:17 von csoler

On Fri, Oct 10, 2003 at 12:24:16PM +0530, Sarvesh Singhal wrote:
> Hi,
>=20
> We shut down the systems in the evening and so next day I have to aga=
in run
> fetchmail to run in daemon mode. I tried using cron so that next day =
it
> starts. but it does not works rather I have to manually run the fetch=
mail
> command to start trhe fetchmail in daemon mode

Hi,

I added the following task in my crontab:

*/15 * * * * if ! `pgrep fetchmail > /dev/null 2>&1`; then fetchmail
--nokeep --daemon 900; fi >/dev/null 2>&1

hope this help you...

--=20
C=E9sar Soler PGP KeyID: 0x179DAD53

La memoria sirve a su propio amo.
-- Feinberg.=20
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: fetchmail sceduling

am 10.10.2003 11:22:32 von Sven Pfeifer

Hi,

Sarvesh Singhal wrote:
> Hi,
>=20
> We shut down the systems in the evening and so next day I have to aga=
in run
> fetchmail to run in daemon mode. I tried using cron so that next day =
it
> starts. but it does not works rather I have to manually run the fetch=
mail
> command to start trhe fetchmail in daemon mode

why don=B4t you start the fetchmail-daemon when entering the correct
runlevel? e. g. a script called fetchmaild in /etc/rc.d/init.d/
containing something like:

---8<--
#!/bin/bash

### path to binary ###
FETCHMAIL_BIN=3D"/usr/bin/fetchmail"

### time between two polls in sec ###
POLLTIME=3D"300"

### file whith host, user, password definitions ###
FETCHMAILRC=3D"/etc/fetchmailrc

### starting the daemon with logging to syslog ###
${FETCHMAIL_BIN} -d ${POLLTIME} -f ${FETCHMAILRC} --syslog
-->8---

> Please help!!

HTH

> SS

Cheers

Sven

--=20
Why you can't find your system administrators:
Convinience store across the street opened
------------------------------------------------------[rand. sig. #16]
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: fetchmail sceduling

am 10.10.2003 23:11:03 von John Julian

my /etc/rc.d/init.d/fetchmail script looks like:
----------------
# fetchmail daemon to suck mail from remote hosts

case "$1" in
start ) /usr/bin/fetchmail -f /root/.fetchmailrc;;
stop ) /usr/bin/fetchmail --quit;;
restart )
/usr/bin/fetchmail --quit
/usr/bin/fetchmail -f /root/.fetchmailrc;;
* ) echo "options start, stop, restart";;
esac
-----------------

I've got it linked to rc3.d/S99fetchmail and rc5.d/S99fetchmail


On Fri, 10 Oct 2003, Sven Pfeifer wrote:

> Hi,
>=20
> Sarvesh Singhal wrote:
> > Hi,
> >=20
> > We shut down the systems in the evening and so next day I have to a=
gain run
> > fetchmail to run in daemon mode. I tried using cron so that next da=
y it
> > starts. but it does not works rather I have to manually run the fet=
chmail
> > command to start trhe fetchmail in daemon mode
>=20
> why don=B4t you start the fetchmail-daemon when entering the correct
> runlevel? e. g. a script called fetchmaild in /etc/rc.d/init.d/
> containing something like:
>=20
> ---8<--
> #!/bin/bash
>=20
> ### path to binary ###
> FETCHMAIL_BIN=3D"/usr/bin/fetchmail"
>=20
> ### time between two polls in sec ###
> POLLTIME=3D"300"
>=20
> ### file whith host, user, password definitions ###
> FETCHMAILRC=3D"/etc/fetchmailrc
>=20
> ### starting the daemon with logging to syslog ###
> ${FETCHMAIL_BIN} -d ${POLLTIME} -f ${FETCHMAILRC} --syslog
> -->8---
>=20
> > Please help!!
>=20
> HTH
>=20
> > SS
>=20
> Cheers
>=20
> Sven
>=20
>=20

--=20
John Julian
Computer Geek
cell: 248-787-2221
pager: 800-621-4951

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html