Package: cyrus-common
Version: 2.4.16-4+deb7u1
Severity: minor
File: /etc/init.d/cyrus-imapd

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***

The command `/etc/init.d/cyrus-imapd start` dysplays wollowing error messages:
find: `/run/cyrus/lock': No such file or directory
find: `/run/cyrus/proc': No such file or directory

These directories not exists really.
I make patch to fix this (it is need to check existence of directory before 
find it's contents).


-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cyrus-common depends on:
ii  adduser                3.113+nmu3
ii  db-util                5.1.6
ii  db4.7-util             4.7.25-21
ii  db4.8-util             4.8.30-12
ii  db5.1-util             5.1.29-5
ii  debconf [debconf-2.0]  1.5.49

cyrus-common recommends no packages.

cyrus-common suggests no packages.

-- debconf information excluded
--- /etc/init.d/cyrus-imapd	2013-05-17 18:50:36.000000000 +0600
+++ src/cyrus-imapd	2014-06-01 11:42:29.503119241 +0600
@@ -145,8 +145,8 @@
     #   2 if daemon could not be started
     
     # Clean stale entries
-    find "$LOCK_DIR" -mindepth 1 -depth -size 0 -delete
-    find "$PROC_DIR" -mindepth 1 -depth -name '[0-9]*' -delete
+    [ -d $LOCK_DIR ] && find "$LOCK_DIR" -mindepth 1 -depth -size 0 -delete
+    [ -d $PROC_DIR ] && find "$PROC_DIR" -mindepth 1 -depth -name '[0-9]*' -delete
 
     start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
 	|| return 1

Reply via email to