Redis is configured without pidfile.
authorDan Ungureanu <dan@ungureanu.me>
Fri, 15 Feb 2019 13:46:32 +0000 (15:46 +0200)
committerDan Ungureanu <dan@ungureanu.me>
Fri, 15 Feb 2019 13:46:32 +0000 (15:46 +0200)
templates/redis.template.yml

index 084a489fcaf4c79c20fb543b0654ccf7bd4713e6..c69a7360d02594cd01b128d469a92abe80d6239e 100644 (file)
@@ -5,15 +5,6 @@ run:
      contents: |
         #!/bin/sh
         exec 2>&1
-
-        RUNDIR=/var/run/redis
-        PIDFILE=/var/run/redis/redis-server.pid
-
-        mkdir -p $RUNDIR
-        touch $PIDFILE
-        chown -R redis:redis $RUNDIR
-        chmod 755 $RUNDIR
-
         exec thpoff chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
   - file:
      path: /etc/service/redis/log/run