| Summary: | net-misc/memcached-1.4.7 no longer installs systemd service | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | gentoo <gentoo> |
| Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | prometheanfire, systemd |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
gentoo@danielquinn.org
2014-02-04 09:16:05 UTC
provide a file and I can install it I'm not an experienced systemd dev, but I think this one they have on github should suffice: https://github.com/memcached/memcached/blob/master/scripts/memcached.service Correction. The .service file they have in their github makes an assumption about the placement of the EnvironmentFile. I did some testing of my own, and this appears to do the job:
[Unit]
Description=memcached daemon
After=network.target
[Service]
EnvironmentFile=/etc/conf.d/memcached
ExecStart=/usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS
[Install]
WantedBy=multi-user.target
I'm not sure what the best way to make it part of the ebuild is though. Whether you should use a patch for their original file, or just copy/paste this -- you'd know better than me.
I can tell you though that this definitely works for me.
fixed in memcached-1.4.17-r2.ebuild It was using the one without EnvironmentFile on purpose: https://wiki.gentoo.org/wiki/Systemd/Ebuild_policy#Unit_file_guidelines I would use the old one: [Unit] After=network.target Description=High-performance, distributed memory object caching system Documentation=man:memcached(1) Documentation=http://code.google.com/p/memcached/ [Service] ExecStart=/usr/bin/memcached User=memcached [Install] WantedBy=multi-user.target fixed for real this time thanks! |