Talk:InspIRCd

From ArchWiki
Latest comment: 23 June 2015 by Phillid in topic Living in the Past

Logging

The supplied rc.d script logs standard server messages to /var/log/inspircd/startup.log. Using the following is a un-recommended method of logging all user messages:

 <log method="file" type="USERINPUT USEROUTPUT" level="default" target="/var/log/inspircd/chat.log">

In my experience however, this method did not work at all, instead requiring a third-party module;

 <log method="file" type="m_chatlog" level="default" target="/var/log/inspircd/chat.log">

However, this caused duplicate logging between startup.log and chat.log, so I chose to disable the startup log by replacing line 15 in /etc/rc.d/inspircd with:

 su -s /bin/sh -c '/usr/sbin/inspircd --logfile /dev/null --config /etc/inspircd/inspircd.conf' 'inspircd' > /dev/null

This was required because InspIRCd would not start if --logfile has not been set.


Living in the Past

We haven't used initscripts for a few years now, why does the article still reference rc.d?

I will get around to making an edit eventually if nobody else does. Phillid (talk) 02:13, 23 June 2015 (UTC)Reply[reply]

20/10/2021 in addition, move /var/lib/inspircd to /run/inspircd