Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218052 - net-irc/irc-server-2.11.1_p1-r1 - log/run dirs incorrect, ircd always running as root
Summary: net-irc/irc-server-2.11.1_p1-r1 - log/run dirs incorrect, ircd always running...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 06:30 UTC by Ville Mattila
Modified: 2008-07-14 14:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed irc-server ebuild fixing the reported problems (irc-server-2.11.1_p1-r2.ebuild,2.61 KB, text/plain)
2008-04-17 06:36 UTC, Ville Mattila
Details
Proposed ircd init script (files/ircd.rc) adding chuid functionality (ircd.rc,545 bytes, text/plain)
2008-04-17 06:38 UTC, Ville Mattila
Details
Proposed new /etc/conf.d/ircd init script config (ircd.confd,202 bytes, text/plain)
2008-04-17 06:39 UTC, Ville Mattila
Details

Note You need to log in before you can comment on or make changes to this bug.
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!