Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d4c9d89
Add Windows service.
rgl Jan 15, 2011
7b81a2d
Load the logging level/file and redis host/port from the redis config…
rgl Jan 16, 2011
242ccba
Restore the working directory after we load the configuration.
rgl Jan 16, 2011
f17dff2
Add the initial cut of the installer.
rgl Jan 16, 2011
3bc1e90
Add the Redis version as an embedded resource in the redis-service.ex…
rgl Jan 16, 2011
b85901d
Fix typo.
rgl Jan 16, 2011
2b7562b
Merge branch 'master' of https://github.com/dmajkic/redis
rgl Jan 20, 2011
05361bd
Modify the installed configuration to save the databases data into th…
rgl Jan 21, 2011
eca3983
Add pre-release and debug flags to the service file version informati…
rgl Jan 23, 2011
e5086e4
Switch to Unicode Inno Setup.
rgl Jan 23, 2011
ed9c092
Automatically create the service account (RedisService) on installati…
rgl Jan 27, 2011
223e725
Grant the RedisService account full permissions to the data and logs …
rgl Jan 29, 2011
b17e782
Create Start Menu entries.
rgl Jan 29, 2011
a0dc99e
On uninstall, delete the redis.conf file if its different than redis-…
rgl Jan 29, 2011
fb4ec6f
Display the redis logo on the setup window.
rgl Jan 29, 2011
5b785bd
Add Makefile to create the setup binary.
rgl Jan 29, 2011
fbec5c7
Create a setup file named redis-setup-NN-bit.exe where NN is 32 or 64…
rgl Feb 3, 2011
2b08dbe
Add "clean" target for the "setup" directory.
rgl Feb 6, 2011
9ca561f
Use the AUTH command when connecting to Redis.
rgl Feb 6, 2011
ca10571
Handle the rename-command configuration stanza for the AUTH and SHUTD…
rgl Feb 6, 2011
1d1e93a
Move the configuration to the conf subdirectory.
rgl Feb 6, 2011
f66f98a
Tidy permissions.
rgl Feb 6, 2011
628b6aa
Only exit after Redis exits too.
rgl Feb 6, 2011
435a4f5
Add "all" target to setup Makefile.
rgl Feb 6, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ clean:
cd src && $(MAKE) $@
cd deps/hiredis && $(MAKE) $@
cd deps/linenoise && $(MAKE) $@
cd setup && $(MAKE) $@

$(TARGETS):
cd src && $(MAKE) $@

setup: all
cd setup && $(MAKE) $@

src/help.h:
@./utils/generate-command-help.rb > $@

Expand Down
34 changes: 34 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
About this fork
---------------

This fork lets you run Redis Server as a Windows service.

It introduces the redis-service.exe binary; this is a Windows service that
simply starts and stops the redis-server.exe binary.

It expects to find redis-server.exe and conf\redis.conf files in the same
directory as redis-service.exe.

This fork also introduces a Windows installer; this will:

* install redis into Program Files.
* configure redis to store its database dumps inside the "data"
subdirectory, and logs inside "logs" subdirectory.
* create the RedisService Windows account (with Logon as service
privilege)
* install a Windows Service to automatically start Redis Server (run
as the RedisService account) at boot (but has to be manually
started after install...).
* the installer will not override existing redis.conf file (it does
install a redis-dist.conf with the default settings).
* create a bunch of Start Menu entries (for redis-cli.exe, redis home
page, etc).

NB This is a work in progress. See the planned features inside the
src/service.c and setup/redis.iss files.

Let me known how this works for you!

-- Rui Lopes


Windows 32 and x64 port of Redis server, client and utils
--------------------------------------------

Expand Down
13 changes: 13 additions & 0 deletions setup/COPYING.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Redis Copyright (c) 2006-2011, Salvatore Sanfilippo
Redis Windows Port Copyright (c) 2010-2011, Dusan Majkic
Redis Windows Service and Setup Copyright (c) 2011, Rui Lopes

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Redis nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 changes: 14 additions & 0 deletions setup/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ISCC?= '/c/Program Files (x86)/Inno Setup 5/ISCC.exe'

ifneq (,$(shell objdump -f ../src/redis-server.exe | grep x86-64))
ISCCOPT+= -d_WIN64
endif

all: setup

setup:
strip ../src/*.{exe,dll}
$(ISCC) redis.iss $(ISCCOPT)

clean:
rm -f redis-setup-*.exe
27 changes: 27 additions & 0 deletions setup/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
This directory contains the files needed to create the Redis install
program.

You first need to install Unicode Inno Setup (the QuickStart Pack) from:

http://www.jrsoftware.org/isdl.php#qsp

NB Get the ispack-5.4.0-unicode.exe file.

Then, open the redis.iss file with the InnoIDE application (normally,
you can just double click the .iss file to open it) and click build.
It should create a file named redis-setup-NN-bit.exe with the install
program.

NB NN is 32 or 64 depending whether you are using a 32 or 64 bit
compiler.

NB You first need to build redis binaries. This is normally done by
running the following command in the top level directory:

make DEBUG=''


This install uses SetACL.exe to grant NTFS file permissions to the
RedisServer account. SetACL can be download from:

http://helgeklein.com/setacl/
2 changes: 2 additions & 0 deletions setup/Redis Documentation.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=http://redis.io/documentation
2 changes: 2 additions & 0 deletions setup/Redis Home.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=http://redis.io
2 changes: 2 additions & 0 deletions setup/Redis Windows Port Home.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://github.com/dmajkic/redis
2 changes: 2 additions & 0 deletions setup/Redis Windows Service and Setup Home.url
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://github.com/rgl/redis
Binary file added setup/SetACL.exe
Binary file not shown.
Binary file added setup/redis-setup-wizard-small.bmp
Binary file not shown.
Binary file added setup/redis-setup-wizard.bmp
Binary file not shown.
Binary file added setup/redis.ico
Binary file not shown.
Loading