Skip to content

Instantly share code, notes, and snippets.

@artkirienko
Last active March 4, 2018 17:57
Show Gist options
  • Save artkirienko/8b467a2206fc9ac9c8eb to your computer and use it in GitHub Desktop.
Save artkirienko/8b467a2206fc9ac9c8eb to your computer and use it in GitHub Desktop.
/lib/systemd/system/redis.service systemctl enable redis.service
[Unit]
Description=Redis Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/redis-3.0.4/src/redis-server
#/etc/redis.conf
ExecStop=/bin/kill -15 $MAINPID
PIDFile=/var/run/redis.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