mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 13:31:32 +00:00
.github
deps
src
tests
utils
create-cluster
graphs
hashtable
hyperloglog
lru
releasetools
srandmember
build-static-symbols.tcl
cluster_fail_time.tcl
corrupt_rdb.c
gen-test-certs.sh
generate-command-help.rb
install_server.sh
redis-copy.rb
redis-sha1.rb
redis_init_script
redis_init_script.tpl
speed-regression.tcl
systemd-redis_multiple_servers@.service
systemd-redis_server.service
tracking_collisions.c
whatisdoing.sh
.gitignore
00-RELEASENOTES
BUGS
CONTRIBUTING
COPYING
INSTALL
MANIFESTO
Makefile
README.md
TLS.md
redis.conf
runtest
runtest-cluster
runtest-moduleapi
runtest-sentinel
sentinel.conf
38 lines
1.3 KiB
Desktop File
38 lines
1.3 KiB
Desktop File
# example systemd template service unit file for multiple redis-servers
|
|
#
|
|
# You can use this file as a blueprint for your actual template service unit
|
|
# file, if you intend to run multiple independent redis-server instances in
|
|
# parallel using systemd's "template unit files" feature. If you do, you will
|
|
# want to choose a better basename for your service unit by renaming this file
|
|
# when copying it.
|
|
#
|
|
# Please take a look at the provided "systemd-redis_server.service" example
|
|
# service unit file, too, if you choose to use this approach at managing
|
|
# multiple redis-server instances via systemd.
|
|
|
|
[Unit]
|
|
Description=Redis data structure server - instance %i
|
|
Documentation=https://redis.io/documentation
|
|
# This template unit assumes your redis-server configuration file(s)
|
|
# to live at /etc/redis/redis_server_<INSTANCE_NAME>.conf
|
|
AssertPathExists=/etc/redis/redis_server_%i.conf
|
|
#Before=your_application.service another_example_application.service
|
|
#AssertPathExists=/var/lib/redis
|
|
|
|
[Service]
|
|
ExecStart=/usr/local/bin/redis-server /etc/redis/redis_server_%i.conf
|
|
LimitNOFILE=10032
|
|
NoNewPrivileges=yes
|
|
#OOMScoreAdjust=-900
|
|
#PrivateTmp=yes
|
|
Type=notify
|
|
TimeoutStartSec=infinity
|
|
TimeoutStopSec=infinity
|
|
UMask=0077
|
|
#User=redis
|
|
#Group=redis
|
|
#WorkingDirectory=/var/lib/redis
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|