mozilla-magnet / magnet-metadata-service

A service that returns metadata for given URLs
Other
8 stars 10 forks source link

Install Redis on the tengam machine #35

Closed samgiles closed 8 years ago

samgiles commented 8 years ago

Dependency of #17

samgiles commented 8 years ago

Done: v3.2 (stable) port 6379 (default), internal only.
CC @arcturus

Unit file:

[Unit]
Description=Redis Datastore Server
After=network.target

[Service]
User=redis
Group=redis
ExecStartPre=/bin/mkdir -p /var/lib/redis
ExecStartPre=/bin/chown redis:redis /var/lib/redis

ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown

[Install]
WantedBy=multi-user.target