Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Install Redis as a Windows service? #42

Closed
thierrym06 opened this issue May 13, 2013 · 2 comments
Closed

Install Redis as a Windows service? #42

thierrym06 opened this issue May 13, 2013 · 2 comments

Comments

@thierrym06
Copy link

Hi,

By default, we apparently cannot install Redis Server 2.4/2.6 as a Windows service.

So, we would like to know if there is a way to install it as a Windows service?

Moreover, in a previous "issue", you were talking about RedisWatcherSvc as a solution:
#1

Our understanding is that RedisWatcherSvc is basically a watchdog that will restart Redis instance(s) if necessary.

When RedisWatcherSvc starts a Redis Instance, is it the Redis console application launched or Redis is running in background?

Thanks,

Thierry

@HenryRawas
Copy link

The watcher will run Redis as a background process. It sets the file 'stdout.log' as the output for the console messages, and 'stderr.log' as the output for error messages.

You cannot run Redis as a service without making some changes to the code. If you are willing to do some coding, there is documentation in MSDN for how to convert a console application to a service. Also the RedisWatcher can be used as an example. RedisWatcher can be run as a service or as a console application. Look at the code in RedisWatcher.c and service.c. The wmain() proc uses the command line parameters to decide if it will start as a console app or as a service. Of course you have to think about how to configure the service as well.

@thierrym06
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants