-
-
Save imlzg/d0689cbe2a4dde0fb749f9dda9a70649 to your computer and use it in GitHub Desktop.
Revisions
-
Andrew Goode created this gist
Apr 29, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ /var/lib/redis/logs/redis.log { daily rotate 14 copytruncate delaycompress compress notifempty missingok } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ [Unit] Description=Redis Server After=network.target [Service] Type=simple PIDFile=/var/run/redis.pid User=redis ExecStartPre=/bin/mkdir -p /var/lib/redis/logs ExecStart=/usr/local/bin/redis-server /etc/redis.conf ExecStop=/bin/kill -15 $MAINPID Restart=on-failure [Install] WantedBy=multi-user.target This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <service> <short>Redis Server</short> <description>Redis Datastore Server</description> <port protocol="tcp" port="6379"/> </service>