'service cyrus-imapd stop' fails to stop cyrus-imapd, silently

Bug #1454693 reported by Marius Gedminas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cyrus-imapd-2.4 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ pgrep -u cyrus
11769
11804

$ sudo service cyrus-imapd stop

$ pgrep -u cyrus
11769
11804
---
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
DistroRelease: Ubuntu 14.04
Package: cyrus-imapd-2.4 2.4.17+caldav~beta9-3
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.13.0-51.84-generic 3.13.11-ckt18
Tags: trusty
Uname: Linux 3.13.0-51-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True

Revision history for this message
Marius Gedminas (mgedmin) wrote :

sudo service cyrus-imapd stop at least says it didn't work

$ pgrep -u cyrus
11769
11804

$ sudo service cyrus-imapd restart
 * Restarting Cyrus IMAPd cyrmaster
   ...fail!

$ pgrep -u cyrus
11769
11804

tags: added: apport-collected trusty
description: updated
Revision history for this message
Marius Gedminas (mgedmin) wrote : Dependencies.txt

apport information

Revision history for this message
Marius Gedminas (mgedmin) wrote : ProcEnviron.txt

apport information

Revision history for this message
Marius Gedminas (mgedmin) wrote :

The init script is looking for /var/run/cyrmaster.pid, which doesn't exist. The actual pid file is /var/run/cyrus-master.pid

Revision history for this message
Marius Gedminas (mgedmin) wrote :

There was a similar upstream bug about PIDFILE mismatch: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778781

Curiously it was just the reverse in Debian: the init script was looking for /var/run/cyrus-master.pid, but the software actually used /var/run/cyrus-master.pid.

Revision history for this message
Frank Agerholm (8-frank-b) wrote :

Workaround:

Set the PIDFILE-variable in /etc/default/cyrus-imapd:

PIDFILE=/var/run/cyrus-master.pid

Now the init script does not use its default any more an "stop" works for me...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cyrus-imapd-2.4 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.