[PKG-IRC-Maintainers] inspircd 2.0.16

Andreas Metzler ametzler at bebt.de
Wed Jul 16 12:39:57 UTC 2014


On 2014-07-16 Guillaume Delacour <gui at iroqwa.org> wrote:
> Le mardi 15 juillet 2014 à 01:57 +0200, Guillaume Delacour a écrit :
>> Le dimanche 13 juillet 2014 à 20:21 +0200, Andreas Metzler a écrit :
[...]
>>> ------------------
>>> /etc/inspircd/inspircd.conf:
>>> <pid file="/var/run/inspircd.pid">

>>> /lib/systemd/system/inspircd.service
>>> PIDFile=/var/run/inspircd/inspircd.pid
>>> ------------------
[...]
> File just renamed and new package uploaded to mentors (hint: correct
> date of dsc file is 15-Jul-2014 21:32)
[...]

Hello,

This still won't run on systemd since the daemon cannot generate
/var/run/inspircd.pid if it is run unpriviledged (as user irc).

Possible fixes:
#1 Change the pid file location. In the whole package, not just the
service file.
ametzler at argenau:inspircd-2.0.16$ grep -rl inspircd.pid debian/
debian/inspircd.logrotate
debian/inspircd.conf
debian/inspircd.preinst
debian/inspircd.service
debian/inspircd.prerm
debian/inspircd.init

#2 Change the code to allow to stop inspircd from trying to generate a
pidfile (either aditional option or implied by nofork.

#3 (new idea)
Duplicate how the init script works around the issue. In
debian/inspircd.tmpfile generate a pidfile (instead of a pid
directory).

The same problem exist for the logfile BTW.

Find attached a patch series implementing #3 this. (Works for
me in a simple "does the daemon start and can I connect"-test.)

hth, cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Show-full-compiler-commandline-when-building.patch
Type: text/x-diff
Size: 1401 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-irc-maintainers/attachments/20140716/7f95300f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Drop-PIDFile-entry-from-systemd-service-file.patch
Type: text/x-diff
Size: 1347 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-irc-maintainers/attachments/20140716/7f95300f/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Mimic-init-file-trickery-in-inspircd.tmpfile.patch
Type: text/x-diff
Size: 1980 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-irc-maintainers/attachments/20140716/7f95300f/attachment-0002.patch>


More information about the Pkg-irc-maintainers mailing list