From ac3db1aa60224291a6f6353f291c05befb335a62 Mon Sep 17 00:00:00 2001 From: Teddy Cornaut Date: Thu, 14 Feb 2019 11:56:39 +0100 Subject: [PATCH] Fix init --- debian/eole-redis.redis2-server.service | 1 - init/redis2-server.service | 42 ------------------------- 2 files changed, 43 deletions(-) delete mode 120000 debian/eole-redis.redis2-server.service delete mode 100644 init/redis2-server.service diff --git a/debian/eole-redis.redis2-server.service b/debian/eole-redis.redis2-server.service deleted file mode 120000 index 2a9b9e6..0000000 --- a/debian/eole-redis.redis2-server.service +++ /dev/null @@ -1 +0,0 @@ -../init/redis2-server.service \ No newline at end of file diff --git a/init/redis2-server.service b/init/redis2-server.service deleted file mode 100644 index da659ee..0000000 --- a/init/redis2-server.service +++ /dev/null @@ -1,42 +0,0 @@ -[Unit] -Description=Advanced key-value store instance 2 -After=network.target -Documentation=http://redis.io/documentation, man:redis-server(1) - -[Service] -Type=forking -ExecStart=/usr/bin/redis-server /etc/redis/redis-slave.conf -PIDFile=/var/run/redis/redis-slave-server.pid -TimeoutStopSec=0 -Restart=always -User=redis -Group=redis -RuntimeDirectory=redis -RuntimeDirectoryMode=2755 - -ExecStartPre=-/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d -ExecStartPost=-/bin/run-parts --verbose /etc/redis/redis-server.post-up.d -ExecStop=-/bin/run-parts --verbose /etc/redis/redis-server.pre-down.d -ExecStop=/bin/kill -s TERM $MAINPID -ExecStopPost=-/bin/run-parts --verbose /etc/redis/redis-server.post-down.d - -UMask=007 -PrivateTmp=yes -LimitNOFILE=65535 -PrivateDevices=yes -ProtectHome=yes -ReadOnlyDirectories=/ -ReadWriteDirectories=-/var/lib/redis -ReadWriteDirectories=-/var/log/redis -ReadWriteDirectories=-/var/run/redis -CapabilityBoundingSet=~CAP_SYS_PTRACE - -# redis-server can write to its own config file when in cluster mode so we -# permit writing there by default. If you are not using this feature, it is -# recommended that you replace the following lines with "ProtectSystem=full". -ProtectSystem=true -ReadWriteDirectories=-/etc/redis - -[Install] -WantedBy=multi-user.target -Alias=redis2.service