Last active
March 4, 2018 17:57
-
-
Save artkirienko/8b467a2206fc9ac9c8eb to your computer and use it in GitHub Desktop.
/lib/systemd/system/redis.service systemctl enable redis.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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