12345678910111213141516171819202122 |
- #####################################################################
- # {{ ansible_managed }}
- # {{ item }}
- #####################################################################
- [Unit]
- Description=Redis Server Port {{ item }}
- After=network.target
- [Service]
- WorkingDirectory=/redis/persistant/cpredis
- Type=simple
- LimitNOFILE=65535
- User=redis
- ExecStart=/usr/local/bin/redis-server --port {{ item }} --protected-mode no --dbfilename {{ item }}-redis.rdb --loadmodule /usr/lib/redisraft.so addr={{ ansible_default_ipv4.address }}:{{ item }} raft-log-fsync=no follower-proxy=yes raft-log-filename={{ item }}-raftlog.db
- StandardOutput=file:/var/log/cpredis/redis-{{ item }}.log
- StandardError=file:/var/log/cpredis/redis-{{ item }}-error.log
- [Install]
- WantedBy=multi-user.target
- Alias=redis-{{ item }}.service
|