sys-cluster/pcs-0.10.8-r1: fix systemd service

Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
Andrea Postiglione
2021-03-23 21:05:00 +01:00
parent 50e7f35640
commit 13fb9bbf96
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
--- pcs-0.10.8/pcsd/pcsd-ruby.service 2021-02-01 10:22:26.000000000 +0100
+++ pcs-0.10.8/pcsd/pcsd-ruby.service.new 2021-03-23 20:13:24.380792446 +0100
@@ -6,12 +6,11 @@
After=network-online.target
# Stop the service automatically if nothing that depends on it is running
StopWhenUnneeded=true
-# When stopping or restarting pcsd, stop or restart pcsd-ruby as well
+# When stopping or restarting pcsd, stop or restart pcsd-daemon as well
PartOf=pcsd.service
[Service]
-EnvironmentFile=/etc/sysconfig/pcsd
-Environment=GEM_HOME=/usr/lib/pcsd/vendor/bundle/ruby
+EnvironmentFile=/etc/default/pcsd
# This file holds the selinux context
ExecStart=/usr/lib/pcsd/pcsd
Type=notify

View File

@@ -61,7 +61,9 @@ ruby_add_rdepend "
www-servers/thin
"
PATCHES=( "${FILESDIR}/remove-ruby-bundle-path.patch" "${FILESDIR}/openrc-${PV}.patch" )
PATCHES=( "${FILESDIR}/remove-ruby-bundle-path.patch"
"${FILESDIR}/openrc-${PV}.patch"
"${FILESDIR}/pcsd-daemon.service.patch" )
S="${WORKDIR}/all/${P}"