Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Can't stop|shutdown memcached #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
When I used "-d stop " or "-d shutdown" ,memcached is still running.
test173:/tmp # ps -ef | grep memcached
root     19643     1  1 15:26 ?        00:00:41 ./memcached -d start -m 64 -p 
11211 -u root -v
root     20441 15575  0 16:20 pts/1    00:00:00 grep memcached

What version of the product are you using? On what operating system?
OS:Open Suse Linux
Memcached version:v1.4.5

What can I do when I wanna stop/shutdown memcached?

Original issue reported on code.google.com by fengjian...@gmail.com on 25 Nov 2010 at 8:28

GoogleCodeExporter commented 9 years ago
why don't you simply kill it? via 
kill 19643

Original comment by abioy....@gmail.com on 25 Nov 2010 at 8:49

GoogleCodeExporter commented 9 years ago
Can only kill it?
Of course kill is available.
But ,what can "stop" and "shutdown" do?

Original comment by fengjian...@gmail.com on 25 Nov 2010 at 9:09

GoogleCodeExporter commented 9 years ago
Well, I'm in version 1.2.5, and cannot find the command "stop" or "shutdown".
By the way, isn't "-d" means "run as a daemon" in 1.4.5?

Original comment by abioy....@gmail.com on 25 Nov 2010 at 10:02

GoogleCodeExporter commented 9 years ago
memcached 1.4.5 -help
-d            run as a daemon
memcached 1.2.1
-d start          tell memcached to start
-d restart        tell running memcached to do a graceful restart
-d stop|shutdown  tell running memcached to shutdown
-d install        install memcached service
-d uninstall      uninstall memcached service

Original comment by fengjian...@gmail.com on 25 Nov 2010 at 11:12

GoogleCodeExporter commented 9 years ago
Please don't run memcached as root.  That's always the wrong thing to do.

The text "uninstall" does not appear in the memcached sources in any released 
version I can find.  I looked specifically through these versions:

1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
1.2.7-rc1
1.2.8
1.3.2
1.3.3
1.4-rc1
1.4.0
1.4.0-rc1
1.4.1
1.4.1-rc1
1.4.2
1.4.2-rc1
1.4.3
1.4.3-rc1
1.4.3-rc2
1.4.4
1.4.5

It *was* in the engine branch a while back *only* when compiled with the 
__WIN32__ preprocessor symbol.  Unless you're compiling a windows version of 
memcached to run on Linux *and* calling that version 1.2.1, I have no idea what 
you're running.

Original comment by dsalli...@gmail.com on 25 Nov 2010 at 5:17