courier init script needs to make sub-directory of /var/run

Bug #28552 reported by Ross Burton
16
Affects Status Importance Assigned to Milestone
courier (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)

Bug Description

The courier daemon uses /var/run/courier but this doesn't exist because /var/run is a tmpfs; its init script should make this directory

Also it looks somewhat like it should be using /var/lock anyway

With /var/run in tmpfs as is default in Dapper, courier refuses to start:

$ sudo /etc/init.d/courier-imap start
 * Starting Courier IMAP server... /var/run/courier/imapd.pid.lock: No such file or directory
ll_daemon_start: Resource temporarily unavailable

This is because /var/run/courier doesn't exist, by creating /var/run/courier and /var/run/courier/authdaemon it starts.

Revision history for this message
Kent Nyberg (nyberg-kent) wrote :

I have this problem in Dapper aswell. Those two directories does not exist and that makes /etc/init.d/courier-imap and courier-authdaemon not wanting to start. Creating the directories results in imap wanting to start.

Matt Zimmerman (mdz)
Changed in courier:
assignee: nobody → keybuk
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This needs a tweak to its init script to create the directory.

Changed in courier:
status: Unconfirmed → Confirmed
summary: + The courier daemon uses /var/run/courier but this doesn't exist because
+ /var/run is a tmpfs; its init script should make this directory
+
+ Also it looks somewhat like it should be using /var/lock anyway
Changed in courier:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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