systemd_redis.example 715 B

123456789101112131415161718
  1. #####################################################################
  2. [Unit]
  3. Description=Redis Server Port 19901
  4. After=network.target
  5. [Service]
  6. WorkingDirectory=/db/data
  7. Type=simple
  8. LimitNOFILE=65535
  9. User=redislabs
  10. ExecStart=/usr/local/bin/redis-server --port 19901 --protected-mode no --dbfilename 19901-redis.rdb --loadmodule /usr/local/share/redisraft/redisraft.so addr=CHANGEME:19901 raft-log-fsync=no follower-proxy=no raftize-all-commands=yes cluster-start-hslot=0 cluster-end-hslot=1365 raft-log-filename=19901-raftlog.db cluster-mode=yes
  11. StandardOutput=file:/db/errorlog/redis-19901.log
  12. StandardError=file:/db/errorlog/redis-19901-error.log
  13. [Install]
  14. WantedBy=multi-user.target
  15. Alias=redis-19901.service