Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393505 - net-misc/wicd please add systemd service file.
Summary: net-misc/wicd please add systemd service file.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 11:39 UTC by emil karlson
Modified: 2011-12-10 17:36 UTC (History)
2 users (show)

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


Attachments
systemd unit file. (wicd.service,115 bytes, text/plain)
2011-12-07 11:39 UTC, emil karlson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emil karlson 2011-12-07 11:39:11 UTC
Unit file attached. (tested on net-misc/wicd-1.7.1_beta2-r7  and
systemd-37)

inherit eutils distutils systemd

src_install(){...
systemd_dounit "${FILESDIR}/wicd.service"


Reproducible: Always
Comment 1 emil karlson 2011-12-07 11:39:53 UTC
Created attachment 295073 [details]
systemd unit file.
Comment 2 emil karlson 2011-12-07 16:43:25 UTC
Usptream bug.
https://bugs.launchpad.net/wicd/+bug/867546

Upstream service file, using dbus service type might be silly, since the actual service provided is not on dbus (in the sense I interpret the manual), but this might not be harmful either (unless systemd only acquires the dbus name and does not actually start the service until user starts the UI).
https://launchpadlibrarian.net/81930085/wicd.service

Quoting mgorny on #gentoo-desktop preemptively. 
"systemd policy is to have unit files installed by packages themselves"
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-07 21:16:22 UTC
I'm not using wicd myself so I can't say how it works exactly but for 'dbus' service type it is required that the daemon claims D-Bus name and starts listening to requests in all use scenarios.

If the daemon starts but doesn't claim D-Bus, systemd will soon timeout, assume it hanged and kill it.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-09 17:10:29 UTC
After more discussion, the upstream-submitted service file is correct and that one should be used.
Comment 5 Thomas Kahle (RETIRED) gentoo-dev 2011-12-10 17:36:31 UTC
Thanks for the report.  I have added this in 1.7.1_pre20111210:

+*wicd-1.7.1_pre20111210 (10 Dec 2011)
+
+  10 Dec 2011; Thomas Kahle <tomka@gentoo.org> +wicd-1.7.1_pre20111210.ebuild,
+  +files/wicd-1.7.1_pre20111210-wpa-psk-hex-template.patch:
+  Bump to snapshot of 1.7.1 beta 3 to fix accumulated bugs like bug 391397.
+