Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501474 - sys-devel/distcc-3.1-r9 - distccd.service should include /etc/conf.d/distccd $variables ($DISTCCD_OPTS)
Summary: sys-devel/distcc-3.1-r9 - distccd.service should include /etc/conf.d/distccd ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-16 12:06 UTC by Arnaud Desgranges
Modified: 2014-02-16 13:53 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,4.27 KB, text/plain)
2014-02-16 12:09 UTC, Arnaud Desgranges
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Desgranges 2014-02-16 12:06:55 UTC
The default distccd.service(systemd) doesn't include /etc/conf.d/distccd VARIABLES.
By default distccd.service is like this :
[Unit]
Description=Distccd: A Distributed Compilation Server
After=network.target

[Service]
User=distcc
ExecStart=/usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow $ALLOWED_SERVERS

[Install]
WantedBy=multi-user.target

it should be something like this :
[Unit]
Description=Distccd: A Distributed Compilation Server
After=network.target

[Service]
User=distcc
EnvironmentFile=/etc/conf.d/distccd
ExecStart=/usr/bin/distccd --verbose --no-detach --daemon $DISTCCD_OPTS

[Install]
WantedBy=multi-user.target

To include config file /etc/conf.d/distccd ($DISTCCD_OPTS)

Reproducible: Always

Steps to Reproduce:
1. Start distccd systemd style
2. modify /etc/conf.d/distccd $variable
3. changing $DISTCCD_OPTS has no effect
Actual Results:  
/usr/lib/systemd/system/distccd.service doesn't get variable from /etc/conf.d/distccd

Expected Results:  
/usr/lib/systemd/system/distccd.service should get variable from /etc/conf.d/distccd
Comment 1 Arnaud Desgranges 2014-02-16 12:09:41 UTC
Created attachment 370536 [details]
emerge --info
Comment 2 Pacho Ramos gentoo-dev 2014-02-16 13:53:11 UTC
https://wiki.gentoo.org/wiki/Systemd/Ebuild_policy#Unit_file_guidelines

It's done in purpose