This commit is contained in:
parent
5e6ab45f6e
commit
3eb9acca2e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 30 17:49:47 CEST 2008 - pcerny@suse.cz
|
||||||
|
|
||||||
|
- added option to specify polling interval to init script
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 28 18:31:11 CET 2008 - pcerny@suse.cz
|
Fri Mar 28 18:31:11 CET 2008 - pcerny@suse.cz
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Copyright (c) 1995-2002 SuSE Linux AG, Nuernberg, Germany.
|
# Copyright (c) 1995-2008 SuSE Linux AG, Nuernberg, Germany.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Author: Stanislav Brabec <sbrabec@suse.cz>
|
# Author: Stanislav Brabec <sbrabec@suse.cz>
|
||||||
@ -109,6 +109,14 @@ case "$1" in
|
|||||||
rc_status
|
rc_status
|
||||||
;;
|
;;
|
||||||
start)
|
start)
|
||||||
|
if [ $# -ge 2 ]; then
|
||||||
|
if echo "$2" | grep -E "^[0-9]+$" >& /dev/null ; then
|
||||||
|
FETCHMAIL_POLLING_INTERVAL="$2"
|
||||||
|
else
|
||||||
|
echo "Invalid polling interval specified: '$2', using default: $FETCHMAIL_POLLING_INTERVAL"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n "Starting fetchmail"
|
echo -n "Starting fetchmail"
|
||||||
## Start daemon with startproc(8). If this fails
|
## Start daemon with startproc(8). If this fails
|
||||||
## the return value is set appropriately by startproc.
|
## the return value is set appropriately by startproc.
|
||||||
@ -136,7 +144,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
$0 status
|
$0 status
|
||||||
if test $? = 0; then
|
if test $? = 0; then
|
||||||
$0 restart
|
$0 restart "$2"
|
||||||
else
|
else
|
||||||
rc_reset # Not running is not a failure.
|
rc_reset # Not running is not a failure.
|
||||||
fi
|
fi
|
||||||
@ -147,7 +155,7 @@ case "$1" in
|
|||||||
## Stop the service and regardless of whether it was
|
## Stop the service and regardless of whether it was
|
||||||
## running or not, start it again.
|
## running or not, start it again.
|
||||||
$0 stop
|
$0 stop
|
||||||
$0 start
|
$0 start "$2"
|
||||||
|
|
||||||
# Remember status and be quiet
|
# Remember status and be quiet
|
||||||
rc_status
|
rc_status
|
||||||
@ -208,7 +216,7 @@ case "$1" in
|
|||||||
test $FETCHMAIL_CONFIG -nt /var/run/fetchmail.pid || test $FETCHMAIL_RC -nt /var/run/fetchmail.pid && echo reload
|
test $FETCHMAIL_CONFIG -nt /var/run/fetchmail.pid || test $FETCHMAIL_RC -nt /var/run/fetchmail.pid && echo reload
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {oneshot|start|stop|status|try-restart|restart|force-reload|reload}"
|
echo "Usage: $0 {oneshot|start|stop|status|try-restart|restart|force-reload|reload} [polling interval]"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -17,7 +17,7 @@ License: GPL v2 or later; Other uncritical OpenSource License; Public Dom
|
|||||||
Group: Productivity/Networking/Email/Utilities
|
Group: Productivity/Networking/Email/Utilities
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 6.3.8
|
Version: 6.3.8
|
||||||
Release: 113
|
Release: 123
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}.init
|
Source1: %{name}.init
|
||||||
Source2: %{name}.logrotate
|
Source2: %{name}.logrotate
|
||||||
@ -161,6 +161,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{py_sitedir}/fetchmailconf.*
|
%{py_sitedir}/fetchmailconf.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 30 2008 pcerny@suse.cz
|
||||||
|
- added option to specify polling interval to init script
|
||||||
* Fri Mar 28 2008 pcerny@suse.cz
|
* Fri Mar 28 2008 pcerny@suse.cz
|
||||||
- additional fix for bnc#246829
|
- additional fix for bnc#246829
|
||||||
[fetchmail-6.3.8-starttls.patch ->
|
[fetchmail-6.3.8-starttls.patch ->
|
||||||
@ -356,7 +358,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Wed Nov 29 2000 bjacke@suse.de
|
* Wed Nov 29 2000 bjacke@suse.de
|
||||||
- updated to 5.6.0
|
- updated to 5.6.0
|
||||||
- adjust README to new boot concept
|
- adjust README to new boot concept
|
||||||
* Fri Nov 10 2000 bjacke@suse.de
|
* Sat Nov 11 2000 bjacke@suse.de
|
||||||
- updated to version 5.5.5
|
- updated to version 5.5.5
|
||||||
- switched to long names
|
- switched to long names
|
||||||
- added README.SuSE
|
- added README.SuSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user