mant1988 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

FreeBSD and RPM-based linux multiinstance init scripts #451

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
FreeBSD scenario:
1. create $PREFIX/redis dir (/usr/local/etc/redis)
2. create per-instance configs in prefix dir
3. enumerate instance names to redis_profiles parameter in /etc/rc.conf 
(any-space-character separated)
4. add redis_<instancename>_enable="YES" lines into /etc/rc.conf
5. /usr/local/etc/rc.d/redis restart [<instancename>]
6...
7. PROFIT!

Linux scenario:
1. create /etc/redis.d dir
2. create per-instance configs in /etc/redis.d
3. create symlink to redis in /etc/init.d ("redis-"-prefixed)
4. add symlinks name to required runlevel
5. /etc/init.d/redis-<instancename> restart
6...
7. PROFIT!

Original issue reported on code.google.com by yesin...@gmail.com on 7 Feb 2011 at 12:51

Attachments: