Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[f39] Fix binary path in systemd unit for kvrocks (#1899) #1900

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 518d106d6d54bc65d37116e3c5bc940b5c93fb0e Mon Sep 17 00:00:00 2001
From: Philipp Trulson <[email protected]>
Date: Tue, 13 Aug 2024 10:22:14 +0200
Subject: [PATCH] Change path in systemd service to use package binary

---
utils/systemd/kvrocks.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/systemd/kvrocks.service b/utils/systemd/kvrocks.service
index c0180b7c..17482b7a 100644
--- a/utils/systemd/kvrocks.service
+++ b/utils/systemd/kvrocks.service
@@ -6,7 +6,7 @@ After=network-online.target

[Service]
Type=notify
-ExecStart=/usr/local/bin/kvrocks -c /etc/kvrocks/kvrocks.conf
+ExecStart=/usr/bin/kvrocks -c /etc/kvrocks/kvrocks.conf
Restart=on-failure
ExecStop=/bin/kill -s TERM $MAINPID
RestartSec=10s
--
2.45.2

5 changes: 3 additions & 2 deletions anda/devs/kvrocks/kvrocks.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Name: kvrocks
Version: 2.9.0
Release: 1%?dist
Release: 2%?dist
Summary: Distributed key value NoSQL database that uses RocksDB
License: Apache-2.0
URL: https://kvrocks.apache.org/
Source0: https://github.com/apache/kvrocks/archive/refs/tags/v%version.tar.gz
Patch0: 0001-Change-path-in-systemd-service-to-use-package-binary.patch
Requires: openssl
BuildRequires: autoconf
BuildRequires: cmake
Expand All @@ -19,7 +20,7 @@ Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as st
engine and is compatible with Redis protocol.

%prep
%autosetup
%autosetup -p1

%build
unset LDFLAGS
Expand Down
Loading