- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf- edit /etc/redis-xxx.conf, illustrated as below
...| #!/bin/sh | |
| curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/email |
| # How to sign your custom RPM package with GPG key | |
| # Step: 1 | |
| # Generate gpg key pair (public key and private key) | |
| # | |
| # You will be prompted with a series of questions about encryption. | |
| # Simply select the default values presented. You will also be asked | |
| # to create a Real Name, Email Address and Comment (comment optional). | |
| # | |
| # If you get the following response: |
$ cp /etc/redis.conf /etc/redis-xxx.conf...| #!/bin/bash | |
| # chkconfig: 2345 90 90 | |
| # description: program_name | |
| ### BEGIN INIT INFO | |
| # Provides: deluged | |
| # Required-Start: network | |
| # Required-Stop: network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: Start the program |