Differences

This shows you the differences between two versions of the page.

howtos:suse [2007/01/24 10:38]
manni
howtos:suse [2008/02/08 19:49] (current)
Line 83: Line 83:
  * Put the following init.d script in /etc/init.d/ with the filename popfile   * Put the following init.d script in /etc/init.d/ with the filename popfile
<code> <code>
-  -!/bin/sh +  #!/bin/sh 
-  - +  # 
-  - This program is free software; you can redistribute it and/or +  # This program is free software; you can redistribute it and/or 
-  - modify it under the terms of the GNU General Public License +  # modify it under the terms of the GNU General Public License 
-  - as published by the Free Software Foundation; either +  # as published by the Free Software Foundation; either 
-  - version 2 of the License, or (at your option) any later +  # version 2 of the License, or (at your option) any later 
-  - version. +  # version. 
-  - +  # 
-  - This program is distributed in the hope that it will be useful, +  # This program is distributed in the hope that it will be useful, 
-  - but WITHOUT ANY WARRANTY; without even the implied warranty of +  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
-  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
-  - GNU General Public License for more details. +  # GNU General Public License for more details. 
-  - +  # 
-  - You should have received a copy of the GNU General Public License +  # You should have received a copy of the GNU General Public License 
-  - along with this program; if not, write to the Free Software +  # along with this program; if not, write to the Free Software 
-  - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
-  - +  # 
-  - Copyright (c) 2003 John Graham-Cumming +  # Copyright (c) 2003 John Graham-Cumming 
-  - +  # 
-  - === +  # === 
-  - +  # 
-  - popfile +  # popfile 
-  - +  # 
-  - A shell script designed to start and stop POPFile from within +  # A shell script designed to start and stop POPFile from within 
-  - /etc/init.d on *nix systems. +  # /etc/init.d on *nix systems. 
-  - +  # 
-  - usage: popfile { start | stop | restart | }+  # usage: popfile { start | stop | restart | }
-    - +  # 
-  - RedHat comment block... +  # RedHat comment block... 
-  - +  # 
-  - chkconfig: 345 80 20 +  # chkconfig: 345 80 20 
-  - description: popfile is a POP3 proxy and mail filter +  # description: popfile is a POP3 proxy and mail filter 
-  - pidfile: /var/run/popfile.pid +  # pidfile: /var/run/popfile.pid 
-  - processname: popfile +  # processname: popfile 
-    -+  #
-    - +  # 
-  - LSB comment block... +  # LSB comment block... 
-  -+  #
-  - +  # 
-      - BEGIN INIT INFO +      # BEGIN INIT INFO 
-  - Provides: popfile +  # Provides: popfile 
-  - Required-Start: $network +  # Required-Start: $network 
-  - Required-Stop: $network +  # Required-Stop: $network 
-  - Default-Start: 3 4 5 +  # Default-Start: 3 4 5 
-  - Default-Stop: 3 4 5 +  # Default-Stop: 3 4 5 
-  - Description: popfile is a POP3 proxy and mail filter +  # Description: popfile is a POP3 proxy and mail filter 
-      - END INIT INFO +      # END INIT INFO 
-    -+    #
popfile_root=/usr/share/popfile popfile_root=/usr/share/popfile
Line 143: Line 143:
start() { start() {
-<code>   echo -n "Starting POPFile as background process: "+   echo -n "Starting POPFile as background process: "
   if [ "${pid}" = "" ] ; then    if [ "${pid}" = "" ] ; then
       cd ${popfile_root}        cd ${popfile_root}
Line 152: Line 152:
   else    else
       echo " POPFile already running"        echo " POPFile already running"
-   fi</code>+   fi
} }
stop() { stop() {
-<code>   echo -n "Stopping POPFile: "+   echo -n "Stopping POPFile: "
   if [ "${pid}" = "" ] ; then    if [ "${pid}" = "" ] ; then
Line 167: Line 167:
       pid=""        pid=""
       echo " done"        echo " done"
-   fi</code>+   fi
} }
status() { status() {
-<code>   if [ "${pid}" = "" ] ; then+   if [ "${pid}" = "" ] ; then
       echo "down"        echo "down"
   else    else
       echo "up"        echo "up"
-   fi</code>+   fi
} }
-case "$1" in +case $1 in 
-<code>  start)+   start)
       start        start
       ;;        ;;
Line 195: Line 195:
       echo $"Usage: $0 {start|stop|restart|status}"        echo $"Usage: $0 {start|stop|restart|status}"
       exit 1        exit 1
-       ;;</code>;+       ;;
esac esac
Line 234: Line 234:
      * was       * was
<code> <code>
-<code> poll "realserver.com" protocol POP3 : user "username" there with password "secret" is "mylocalname" here</code>+ poll "realserver.com" protocol POP3 : user "username" there with password "secret" is "mylocalname" here
</code> </code>
      * change to       * change to
<code> <code>
-<code> poll "localhost" protocol POP3 : user "realserver.com:username" there with password "secret" is "mylocalname" here</code>+ poll "localhost" protocol POP3 : user "realserver.com:username" there with password "secret" is "mylocalname" here
</code> </code>
    - restart fetchmail to make your change go into effect     - restart fetchmail to make your change go into effect
 
howtos/suse.1169631518.txt.gz · Last modified: 2008/02/08 19:49 (external edit)

Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.

Recent changes RSS feed Donate Driven by DokuWiki
The content of this wiki is protected by the GNU Fee Documentation License