Bug 878530 - memcached does not start after reboot
Summary: memcached does not start after reboot
Keywords:
Status: CLOSED DUPLICATE of bug 878198
Alias: None
Product: Fedora
Classification: Fedora
Component: memcached
Version: 18
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Lindner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-20 16:13 UTC by Attila Fazekas
Modified: 2012-11-20 17:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-20 17:04:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Attila Fazekas 2012-11-20 16:13:51 UTC
Description of problem:

The installer creates a directory /var/run/memcached with memcached:memcached owner:group.

The pid file used by default is /var/run/memcached/memcached.pid

First you can systemctl start/restart/stop normally, but after reboot the /var/run/memcached owner will be root:root,
and you get subdirectory /var/run/memcached/memcached owned by memcached:memcached

Fixes the issue if you use 
/var/run/memcached/memcached/pid as pid file.


Working two relevant line in
/usr/lib/systemd/system/memcached.service is:

PIDFile=/var/run/memcached/memcached/pid
ExecStart=/usr/bin/memcached -d -u $USER -P /var/run/memcached/memcached/pid -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS

Comment 1 Joe Orton 2012-11-20 17:04:22 UTC

*** This bug has been marked as a duplicate of bug 878198 ***


Note You need to log in before you can comment on or make changes to this bug.