Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218052

Summary: net-irc/irc-server-2.11.1_p1-r1 - log/run dirs incorrect, ircd always running as root
Product: Gentoo Linux Reporter: Ville Mattila <vm>
Component: New packagesAssignee: Packages in net-irc <net-irc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed irc-server ebuild fixing the reported problems
Proposed ircd init script (files/ircd.rc) adding chuid functionality
Proposed new /etc/conf.d/ircd init script config

Description Ville Mattila 2008-04-17 06:30:08 UTC
irc-server-2.11.1_p1-r1 ebuild sets incorrect logdir and rundir and runs the ircd always as root user

Reproducible: Always

Steps to Reproduce:
1. emerge =net-irc/irc-server-2.11.1_p1-r1
2. Run '/etc/init.d/ircd (re)start'.

Actual Results:  
Problems:
1. Log files do net get created in /var/log/ircd/ ('strings ircd' reveals the log dir would be /var/run/ircd/log/ which of course does not exist)
2. iauth.pid, ircd.pid and ircd.tune files do not get created in /var/run/ircd/. This breaks the stop() function in /etc/init.d/ircd etc. 
3. ircd process always runs as the root user (ebuild creates the ircd user account but it's not used).


Expected Results:  
1. ircd should be writing logs to files in /var/log/ircd/.
2. ircd should create pid files (and ircd.tune) in /var/run/ircd/.
3. ircd should run as user ircd instead of root by default.

Will attach an updated ebuild along with an chuid-enabled version of ircd.rc to the bug report later.
Comment 1 Ville Mattila 2008-04-17 06:36:34 UTC
Created attachment 150013 [details]
Proposed irc-server ebuild fixing the reported problems
Comment 2 Ville Mattila 2008-04-17 06:38:21 UTC
Created attachment 150014 [details]
Proposed ircd init script (files/ircd.rc) adding chuid functionality
Comment 3 Ville Mattila 2008-04-17 06:39:41 UTC
Created attachment 150015 [details]
Proposed new /etc/conf.d/ircd init script config
Comment 4 Ville Mattila 2008-07-14 12:08:44 UTC
ping?
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2008-07-14 14:46:07 UTC
Added, thanks!