mastodon-docker/rootfs/etc/service/redis/run

13 lines
206 B
Bash

#!/bin/bash
mkdir -p /state/redis
chown mastodon:mastodon /state/redis
exec chpst -u mastodon:mastodon /usr/bin/redis-server - <<EOF
daemonize no
dir /state/redis
save 900 1
save 300 10
save 60 10000
EOF