diff --git a/sys-cluster/pcs/files/pcsd-daemon.service.patch b/sys-cluster/pcs/files/pcsd-daemon.service.patch new file mode 100644 index 0000000000..00b61cf9ab --- /dev/null +++ b/sys-cluster/pcs/files/pcsd-daemon.service.patch @@ -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 diff --git a/sys-cluster/pcs/pcs-0.10.8-r1.ebuild b/sys-cluster/pcs/pcs-0.10.8-r1.ebuild index a6acdb4754..1af214e5f5 100644 --- a/sys-cluster/pcs/pcs-0.10.8-r1.ebuild +++ b/sys-cluster/pcs/pcs-0.10.8-r1.ebuild @@ -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}"