From 99b6095ecc02de415feaa029afea71ca824344fc Mon Sep 17 00:00:00 2001 From: Vicente Jimenez Aguilar Date: Wed, 29 Apr 2020 11:03:30 +0200 Subject: [PATCH] Fix init script for debian Buster Patch by Vicente Jimenez Aguilar, reviewed by brandonwilliams for CASSANDRA-15770 --- CHANGES.txt | 1 + debian/init | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 5199140c7a..f8f5bfc6f2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 2.2.20 + * Fix Debian init start/stop (CASSANDRA-15770) * Remove ant targets list-jvm-dtests and ant list-jvm-upgrade-dtests (CASSANDRA-16519) * Fix centos packaging for arm64, >=4.0 rpm's now require python3 (CASSANDRA-16477) * Make TokenMetadata's ring version increments atomic (CASSANDRA-16286) diff --git a/debian/init b/debian/init index 72417ae3a1..727468c673 100644 --- a/debian/init +++ b/debian/init @@ -97,7 +97,7 @@ do_stop() # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred - start-stop-daemon -K -p "$PIDFILE" -R TERM/30/KILL/5 >/dev/null + start-stop-daemon -K -u cassandra -p "$PIDFILE" -R TERM/30/KILL/5 >/dev/null RET=$? rm -f "$PIDFILE" return $RET