Comment #11 on issue 149 by ingenthr: memcached.exe exits with Failed to
ignore SIGHUP
http://code.google.com/p/memcached/issues/detail?id=149
As I said above, -d NO LONGER SETS IT UP AS A SERVICE. The code was later
added, and then it was removed because it's really not sufficient. You
generally want to specify things like ports and amount of memory.
Use something else to wrapper it as a service.
Note: when I posted the 1.4.5 binary I suspect the bug reporter is using, I
even mentioned the change on the page:
http://labs.northscale.com/memcached-packages/
The bug remains open because it should do something other than "Failed to
ignore SIGHUP".
@ ingenthr
-d does not set it up as a service but according to help makes it run as a
daemon. Do a memcached.exe -h.
Whatever parameter you want to supply to memcached when you want it as a
service you can do it:
SC create memcached binpath= "c:\memcached\145\memcached.exe -m 512 -d <and
any extra parameter here>"
So what guys did with version 1.4.5 is ok, only that -d that is supposed to
run the thing as a deamon (service in windows) is not doing the thing
correctly.
I hope they will correct this.
Basically we do not need anymore -d start / install / uninstall / stop. But
we need it as a service so new -d parameter should do its job.
How to run memcached as a service?
On windows it is a great prbolem, if you dont know.
While creating with SC, service not starting.
HELP!
> Use something else to wrapper it as a service.
example?
@kinguru:
You have two options. The first solution is to run an older version of
memcached that still can be installed and run as a service. You can
download version 1.2.6 here:
http://code.jellycan.com/memcached/
The second solution is to use SrvAny from the Microsoft resource kit, but I
have no idea if this is still supported under Vista or Windows 7 and
related server versions. More info here:
http://support.microsoft.com/kb/137890
I execute the following command from console as a administrator and it
works fine : Now it is binded to 21201 tcp port and 21202 UDP port on my
localhost.
C:\memcached-x86>memcached.exe -p 21201 -r -U 21202 -c 200 -n 65536 -l
localhost -m 128
Something to add to Comment 14:
Follow the steps from:
http://support.microsoft.com/kb/137890
Repeat step 5 with these values:
Value Name: AppParameters
Data Type : REG_SZ
String : -p 11211 -m 1024
Edit to String to your needs
Since this functionality was working for most people, why was it ripped out?
Because it change the semantics for the -d argument. In addition it doesn't
make any sense to add code in memcached to provide functionality microsoft
already includes through sc.exe...
hello experts, please tell me what i can do in case i dont have admin
privilage?
But the option "-d runservice" has been removed so SC wont work. So now the
process will need to be wrapped in svrany.exe or some other "application as
a service" wrapper.
Comment #22 on issue 149 by dorma...@rydia.net: memcached.exe exits with
Failed to ignore SIGHUP
http://code.google.com/p/memcached/issues/detail?id=149
Windows users should try again with 1.6, or if someone wants to volunteer
to maintain a wiki page about Windows, please contact me for access
permissions. Leaving this all in an issue is silly.