nearinfinity/redis-commander — pull request #98 by jweyrich (2013-07-01 11:58:39+00:00)
Title: Add init.d script for Debian. Requires dpkg >= 1.16.5.

This init.d script has configurable parameters. The way I configured
it requires 3 things:

1. A system user called nodejs which has its own group and homedir.
2. A system user called redis-commander which belongs to the nodejs
group and uses the nodejs homedir.
3. The nodejs homedir MUST have g+w permission so redis-commander
have permision to write as well.

Below is a step-by-step to get it up and running:

# useradd --system -m -s /bin/false nodejs
# useradd --system -d /home/nodejs -G nodejs -s /bin/false \
redis-commander
# chmod g+w /home/nodejs/
# cp dist/debian/init.d/redis-commander /etc/init.d/
# chmod +x /etc/init.d/redis-commander
# update-rc.d redis-commander defaults
# service redis-commander start

Please, let me know if you find any problem.