← Back to team overview

ubuntu-mail-server team mailing list archive

[Bug 761967] Re: /etc/init.d/opendkim fails to start opendkim when run over ssh with a pseudo-tty

 

I've confirmed that this issue occurs when starting the opendkim daemon
directly and is not an issue with start-stop-daemon or the
/etc/init.d/opendkim script.  I've also confirmed that the problem
occurs whether I start the daemon as a non-root user via sudo or as user
root without sudo.  The following does NOT start the opendkim daemon
approximately 10% of the time.

    ssh -tt root@maverick '/usr/sbin/opendkim -x /etc/opendkim.conf -u
opendkim -P /var/run/opendkim/opendkim.pid -p inet:8891@localhost'

I see essentially identical behavior for the dk-filter daemon.
Additionally, the behavior is the same for 10.04 lucid, 10.10 maverick,
and 11.04 beta 2 natty.  I have NOT been able to replicate the problem
on 9.10 karmic (but since it is a timing issue, I'm not sure if this
really is a new issue introduced since karmic).

Adding "&& sleep 1" to the command keeps the pty open long enough for
the daemon to be launched properly.  With the one-second sleep in place,
I have not be able to replicate the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Mail Server, which is subscribed to opendkim in Ubuntu.
https://bugs.launchpad.net/bugs/761967

Title:
  /etc/init.d/opendkim fails to start opendkim when run over ssh with a
  pseudo-tty

Status in “dk-milter” package in Ubuntu:
  New
Status in “dpkg” package in Ubuntu:
  New
Status in “opendkim” package in Ubuntu:
  New

Bug description:
  Binary package hint: opendkim

  Without a pty, opendkim start and restart properly launch the opendkim milter daemon:
  $ ssh -T ubuntu@192.168.2.117 sudo /etc/init.d/opendkim restart
  Restarting OpenDKIM: opendkim.

  But if I force pty allocation (as I do in my Capistrano deployments), the opendkim daemon is NOT started:
  $ ssh -tt ubuntu@192.168.2.117 sudo /etc/init.d/opendkim restart
  Restarting OpenDKIM: opendkim.
  Connection to 192.168.2.117 closed.

  I will also report this issue to the opendkim team as I'm not sure if
  this is Ubuntu- or Debian-specific.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: opendkim 2.1.3+dfsg-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
  Uname: Linux 2.6.35-22-generic i686
  Architecture: i386
  Date: Fri Apr 15 16:46:07 2011
  LiveMediaBuild: Ubuntu-Netbook 10.10 "Maverick Meerkat" - Release i386 (20101007)
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: opendkim



References