* fetchmail sceduling
@ 2003-10-10 6:54 Sarvesh Singhal
2003-10-10 7:57 ` César Soler
2003-10-10 9:22 ` Sven Pfeifer
0 siblings, 2 replies; 4+ messages in thread
From: Sarvesh Singhal @ 2003-10-10 6:54 UTC (permalink / raw)
Cc: linux-admin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fetchmail sceduling
2003-10-10 6:54 fetchmail sceduling Sarvesh Singhal
@ 2003-10-10 7:57 ` César Soler
2003-10-10 9:22 ` Sven Pfeifer
1 sibling, 0 replies; 4+ messages in thread
From: César Soler @ 2003-10-10 7:57 UTC (permalink / raw)
To: Sarvesh Singhal; +Cc: linux-admin
On Fri, Oct 10, 2003 at 12:24:16PM +0530, Sarvesh Singhal wrote:
> 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
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...
--
César Soler <csoler@euskalnet.net> PGP KeyID: 0x179DAD53
La memoria sirve a su propio amo.
-- Feinberg.
-
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fetchmail sceduling
2003-10-10 6:54 fetchmail sceduling Sarvesh Singhal
2003-10-10 7:57 ` César Soler
@ 2003-10-10 9:22 ` Sven Pfeifer
2003-10-10 21:11 ` John Julian
1 sibling, 1 reply; 4+ messages in thread
From: Sven Pfeifer @ 2003-10-10 9:22 UTC (permalink / raw)
To: linux-admin
Hi,
Sarvesh Singhal <ssinghal@abhikalak.com> wrote:
> 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
why don´t 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="/usr/bin/fetchmail"
### time between two polls in sec ###
POLLTIME="300"
### file whith host, user, password definitions ###
FETCHMAILRC="/etc/fetchmailrc
### starting the daemon with logging to syslog ###
${FETCHMAIL_BIN} -d ${POLLTIME} -f ${FETCHMAILRC} --syslog
-->8---
> Please help!!
HTH
> SS
Cheers
Sven
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fetchmail sceduling
2003-10-10 9:22 ` Sven Pfeifer
@ 2003-10-10 21:11 ` John Julian
0 siblings, 0 replies; 4+ messages in thread
From: John Julian @ 2003-10-10 21:11 UTC (permalink / raw)
To: Sven Pfeifer; +Cc: linux-admin
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,
>
> Sarvesh Singhal <ssinghal@abhikalak.com> wrote:
> > 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
>
> why don´t 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="/usr/bin/fetchmail"
>
> ### time between two polls in sec ###
> POLLTIME="300"
>
> ### file whith host, user, password definitions ###
> FETCHMAILRC="/etc/fetchmailrc
>
> ### starting the daemon with logging to syslog ###
> ${FETCHMAIL_BIN} -d ${POLLTIME} -f ${FETCHMAILRC} --syslog
> -->8---
>
> > Please help!!
>
> HTH
>
> > SS
>
> Cheers
>
> Sven
>
>
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-10-10 21:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10 6:54 fetchmail sceduling Sarvesh Singhal
2003-10-10 7:57 ` César Soler
2003-10-10 9:22 ` Sven Pfeifer
2003-10-10 21:11 ` John Julian
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.