Public bug reported:

In memcached.conf, if I set this line:

# pid file
-P /var/run/memcached.pid

Then when I run

sudo service memcached start

I observe two strange behaviors:

1) The following log lines appears:

WARNING: The pid file contained the following (running) pid: 19
Could not open the pid file /var/run/memcached.pid for writing: permission 
denied

(the second line only appears when I set the user to "-u memcache",
rather than "-u root")

2) The sudo service memcached start command does not daemonize until I
press <enter>


I'm running Ubuntu precise (12.04.2 LTS), with the most recent memcached 
package installed.

** Affects: memcached (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  In memcached.conf, if I set this line:
  
  # pid file
  -P /var/run/memcached.pid
  
  Then when I run
  
  sudo service memcached start
  
  I observe two strange behaviors:
  
  1) The following log lines appears:
  
  WARNING: The pid file contained the following (running) pid: 19
  Could not open the pid file /var/run/memcached.pid for writing: permission 
denied
  
- (the second line only appears when I have "-u memcache" set as well)
+ (the second line only appears when I set the user to "-u memcache",
+ rather than "-u root")
  
  2) The sudo service memcached start command does not daemonize until I
  press <enter>

** Description changed:

  In memcached.conf, if I set this line:
  
  # pid file
  -P /var/run/memcached.pid
  
  Then when I run
  
  sudo service memcached start
  
  I observe two strange behaviors:
  
  1) The following log lines appears:
  
  WARNING: The pid file contained the following (running) pid: 19
  Could not open the pid file /var/run/memcached.pid for writing: permission 
denied
  
  (the second line only appears when I set the user to "-u memcache",
  rather than "-u root")
  
  2) The sudo service memcached start command does not daemonize until I
  press <enter>
+ 
+ 
+ I'm running Ubuntu precise (12.04.2 LTS), with the most recent memcached 
package installed.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to memcached in Ubuntu.
https://bugs.launchpad.net/bugs/1176178

Title:
  Setting pid in memcached.conf causes strange behavior

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/memcached/+bug/1176178/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to