Mailing List Archive

[Bug 2738] PID file no longer created
https://bugs.exim.org/show_bug.cgi?id=2738

Lena <Lena@lena.kiev.ua> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |Lena@lena.kiev.ua

--- Comment #1 from Lena <Lena@lena.kiev.ua> ---
Under FreeBSD I see /var/run/exim.pid with the same PID as Exim process.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2738] PID file no longer created [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2738

Andrew Aitchison <exim@aitchison.me.uk> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |exim@aitchison.me.uk

--- Comment #2 from Andrew Aitchison <exim@aitchison.me.uk> ---
Ubuntu 20.10
#apt show exim4
Package: exim4
Version: 4.94-15ubuntu1.2
Priority: optional
Section: mail
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Exim4 Maintainers
<pkg-exim4-maintainers@lists.alioth.debian.org>
....

# sudo service exim4 stop
# sudo rm -rf /run/exim4
# ls -lRau /run/exim4
ls: cannot access '/run/exim4': No such file or directory
# sudo service exim4 start
# ls -lRau /run/exim4
/run/exim4:
total 4
drwxr-x--- 2 Debian-exim Debian-exim 60 May 7 12:15 ./
drwxr-xr-x 43 root root 1400 May 7 12:09 ../
-rw-r--r-- 1 root Debian-exim 8 May 7 12:14 exim.pid
# cat /run/exim4/exim.pid
2841396
# cat /proc/2841396/cmdline
/usr/sbin/exim4-oP/run/exim4/exim.pid-q30m
#
#

Note the "-oP/run/exim4/exim.pid" option (there is a hidden '\000' before each
'-'),
which suggests this issue is about how the daemon is started in Ubuntu 20.04.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2738] PID file no longer created [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2738

--- Comment #3 from Andrew Aitchison <exim@aitchison.me.uk> ---
> Note the "-oP/run/exim4/exim.pid" option
> (there is a hidden '\000' before each '-'),

#hexdump -C /proc/2841396/cmdline
00000000 2f 75 73 72 2f 73 62 69 6e 2f 65 78 69 6d 34 00 |/usr/sbin/exim4.|
00000010 2d 6f 50 00 2f 72 75 6e 2f 65 78 69 6d 34 2f 65 |-oP./run/exim4/e|
00000020 78 69 6d 2e 70 69 64 00 2d 71 33 30 6d 00 |xim.pid.-q30m.|
0000002e

So there is a hidden null after each '-' and between 'P' and '/'.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2738] PID file no longer created [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2738

--- Comment #4 from Jeremy Harris <jgh146exb@wizmail.org> ---
That null seems normal, for a command line that has been split into an argv[].
I see similar for a random process on f32.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2738] PID file no longer created [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2738

Timothy Allen <tim@treehouse.org.za> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID

--- Comment #5 from Timothy Allen <tim@treehouse.org.za> ---
Thank you both. There seems to have been some issue during the upgrade that
blocked the creation of the PID file. Manually killing the exim process and
re-starting it seems to have fixed the issue.

Apologies for the noise!

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##