Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4415 - missing rc-script in fetchmail ebuild
Summary: missing rc-script in fetchmail ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ben Lutgens (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-02 00:18 UTC by borge indergaard
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description borge indergaard 2002-07-02 00:18:07 UTC
Hi!

i emerged fetchmail now, and noticed that there was no rc-script placed in
/etc/init.d/ - so i found a generic rc-script that i placed there, that works
fine - although the colors/messages doesnt match the Gentoo standard, it works.

here is the script:
----start----

#!/bin/sh
#
# To start fetchmail as a system service, copy this file to
# /etc/init.d/fetchmail and run "update-rc.d fetchmail
# defaults".  A fetchmailrc file containg hosts and
# passwords for all local users should be placed in /root
# and should contain a line of the form "set daemon <nnn>".
#
# To remove the service, delete /etc/init.d/fetchmail and run
# "update-rc.d fetchmail remove".

DAEMON=/usr/bin/fetchmail

set -e
test -f $DAEMON || exit 0

case "$1" in
  start)
        echo -n "Starting mail retrieval agent: "
        if start-stop-daemon --start --quiet --exec $DAEMON; then echo "fetchmail."
        else echo "fetchmail already running."; fi
        ;;
  stop)
        echo -n "Stopping mail retrieval agent: "
        start-stop-daemon --stop --quiet --exec $DAEMON
        echo "fetchmail."
        ;;
  force-reload|restart)
        echo -n "Restarting mail retrieval agent: "
        start-stop-daemon --stop --quiet --exec $DAEMON
        start-stop-daemon --start --quiet --exec $DAEMON
        echo "fetchmail."
        ;;
  *)
        echo "Usage: /etc/init.d/fetchmail {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

----end----

i found it here:

http://muse.linuxmafia.org/lost+found/fetchmail-init


---
bidz @ efnet/openprojects
url: www.bidz.org
email: bidz@bidz.org
PGP key: http://jilted.org/files/public-pgp
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-02 05:20:16 UTC
Someone forgot to edit the ChangeLog for the most recent ebuild of fetchmail as
well.  We also need SLOT and LICENSE in there
Comment 2 Marcelo Fontenele S Santos 2002-07-15 20:21:21 UTC
In this message in the mailing archive there is a init.d script that is gentoo
complaint.

http://fireserver.ath.cx/gentoo/msg23696.html

Maybe it could be changed to use /etc/conf.d/fetchmail instead of
/etc/fetchmailrc but I think a change to fetchmailconf would also be needed.But
I'm really not sure.
Comment 3 Ben Lutgens (RETIRED) gentoo-dev 2002-07-16 21:16:26 UTC
 fixed in 5.9.11-r1 please test :-)