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

Bug 515644

Summary: net-misc/lldpd - add systemd unit
Product: Gentoo Linux Reporter: Christian Roessner <c>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED FIXED    
Severity: normal CC: systemd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882    

Description Christian Roessner 2014-06-29 06:25:44 UTC
Please provide a systemd unit. Mine looks like this:

[Unit]
Description=Link Layer Discovery Protocol daemon
After=syslog.target
After=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/lldpd
StandardOutput=syslog
ExecStart=/usr/sbin/lldpd $LLDPD_OPTS

[Install]
WantedBy=multi-user.target
Comment 1 Patrick McLean gentoo-dev 2014-07-01 01:23:00 UTC
systemd team: does that look reasonable to you?
Comment 2 Pacho Ramos gentoo-dev 2014-07-01 08:52:05 UTC
We prefer to not use conf.d files at all, specially in cases like this one that don't really need it apart of letting people to append random options that could break the unit file if not modified accordingly

StandardOutput=syslog is not needed and, as EnvironmentFile is not used, $LLDPD_OPTS should be dropped too
Comment 3 Patrick McLean gentoo-dev 2014-07-01 18:02:31 UTC
Fixed in net-misc/lldpd-0.7.9