Package: redis-server Version: 2:3.0.3-2 Severity: normal Howdy maintainer,
If I change the port Redis listens on (e.g. to listen only on a UNIX socket), the ExecStop line in redis-server (which calls redis-cli shutdown) is then incorrect. When I try to stop redis-server, syslog shows: Aug 2 17:42:53 anthrax systemd[1]: Stopping Advanced key-value store... Aug 2 17:42:53 anthrax redis-cli[4099]: Could not connect to Redis at 127.0.0.1:6379: Connection refused Aug 2 17:42:53 anthrax systemd[1]: redis-server.service: Control process exited, code=exited status=1 Aug 2 17:42:53 anthrax systemd[1]: Stopped Advanced key-value store. Aug 2 17:42:53 anthrax systemd[1]: redis-server.service: Unit entered failed state. Aug 2 17:42:53 anthrax systemd[1]: redis-server.service: Failed with result 'exit-code'. Simply removing the ExecStop line fixes this (presumably systemd sends a SIGTERM or something to the process). This seems like a reasonable fix (looks like it's basically what `/etc/init.d/redis-server` does). Many thanks! Chris Here is a diff of my config file: --- /etc/redis/redis.conf.old 2015-08-02 17:41:21.752303689 -0700 +++ /etc/redis/redis.conf 2015-08-02 17:41:54.624572316 -0700 @@ -42,7 +42,7 @@ # Accept connections on the specified port, default is 6379. # If port 0 is specified Redis will not listen on a TCP socket. -port 6379 +port 0 # TCP listen() backlog. # @@ -67,8 +67,8 @@ # incoming connections. There is no default, so Redis will not listen # on a unix socket when not specified. # -# unixsocket /tmp/redis.sock -# unixsocketperm 700 +unixsocket /tmp/redis.sock +unixsocketperm 700 # Close the connection after a client is idle for N seconds (0 to disable) timeout 0 -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (900, 'testing'), (500, 'testing-updates') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.0.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages redis-server depends on: ii adduser 3.113+nmu3 ii init-system-helpers 1.23 ii libc6 2.19-18 ii libjemalloc1 3.6.0-3 ii redis-tools 2:3.0.3-2 redis-server recommends no packages. redis-server suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org