-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added workaround for spaces in configuration filename. #1
Conversation
Added workaround for spaces in configuration filename.
Thank you Thomas! |
I can't get this to work with spaces in the path. If you use
My command becomes...
...which fails to start with a message that the service "started and then stopped". If I wrap the config in quotes...
...then the service will start but there is no response when attempting a ping. If I offer up a config path without any spaces...
...I get a successful start and ping back. And still successful with quotes removed...
From the command line, this works...
..this does not...
and generates the following output.
Once again, removing the spaces fixes the error.
It doesn't appear to be able to handle a config file with spaces in the path. I'm running Windows 7 Pro. |
Hi Phil, The fix was done in a hurry for a project at work. I hoped I could help others avoid the pain I went through to get the service to run. It is possible that I got it wrong and it doesn't work for anything apart from the case I had to get working. Did you try building from the head revision or did you download the .EXE? It could be that the .EXE hasn't been rebuilt. Thomas |
Hmm. According to the download page, the .EXE was rebuilt: December 02, 2011. |
Hi, guys. Please re-download binary file, it should work now with spaces. Please check it now and let me know. |
Thanks both, the following command now starts successfully and pings back.
Thank you both! Now this is all working, my Redis startup is super slick. Great work! |
Glad to hear it's all working :) |
This might be helpful to others who find this thread. I've written a gist of three batch files to automate creation of and removal of a Redis Windows Service. Remember to change the paths to match your setup. https://gist.github.com/1455330 |
Nice. Is it worth doing a push request with these? |
I could include them in a push, put them under a Will be creating a new public repo tomorrow as an example of how one might layout a windows Redis directory with the scripts incorporated as well. |
I have made a change to allow spaces in the configuration filename. It would be great if you could pull this into the main branch.
Many thanks for the making the service - it has saved me a lot of time.
Большое спасибо,
Thomas