Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 452370

Summary: net-mail/perdition-1.18 init script typo
Product: Gentoo Linux Reporter: Dennis Lichtenthäler <dennis>
Component: [OLD] ServerAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Lichtenthäler 2013-01-15 15:19:53 UTC
The init script installed with net-mail/perdition-1.18 has a typo and is unable to bring down the imaps listener.

Reproducible: Always

Steps to Reproduce:
1. Enable the imap4s listener (IMAP4s=yes in /etc/conf.d/perdition)
2. /etc/init.d/perdition start
3. /etc/init.d/perdition stop
Actual Results:  
 * Shutting down perdition services (IMAP4S) ...
 * WARNING: -o/--oknodo is deprecated and will be removed in the future
 * start-stop-daemon: fopen `/var/run/perdition/imaps.pid': No such file or directory                                                                     [ !! ]
 * ERROR: perdition failed to stop

Expected Results:  
Perdition should stop.

Replacing
${PIDDIR}/imaps.pid
with
${PIDDIR}/imap4s.pid

in the init script fixes the problem.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-15 16:34:28 UTC
--- ChangeLog   2013-01-15 17:33:35.711165715 +0100
+++ ChangeLog.new       2013-01-15 17:33:42.851026814 +0100
@@ -1,7 +1,11 @@
 # ChangeLog for net-mail/perdition
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: /var/cvsroot/gentoo-x86/net-mail/perdition/ChangeLog,v 1.14 2011/06/15 15:24:06 eras Exp $
 
+  15 Jan 2013; Jeroen Roovers <jer@gentoo.org> -perdition-1.17.1.ebuild,
+  perdition-1.18.ebuild, files/perdition.initd:
+  Fix init.d script by Dennis Lichtenthäler (bug #452370). Inherit user.
+
   15 Jun 2011; Eray Aslan <eras@gentoo.org> perdition-1.18.ebuild,
   files/perdition.initd:
   Fix pid dir creation in init script.


I didn't do a revision bump since it apparently took more than a year for anyone to notice. 8-)