Skip to content

Instantly share code, notes, and snippets.

@toc21c
Created January 21, 2015 14:32
Show Gist options
  • Save toc21c/ff378a16b2133e2c2d00 to your computer and use it in GitHub Desktop.
Save toc21c/ff378a16b2133e2c2d00 to your computer and use it in GitHub Desktop.
/lib/systemd/system/redis.service
[Unit]
Description=Redis Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/redis-server
ExecStop=/usr/bin/kill -15 $MAINPID
PIDFile=/var/run/redis_6379.pid
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment