From e706e6a484b7f6ad64075c917d726478eb6b1ff8 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Fri, 27 Aug 2021 21:32:18 +0100 Subject: [PATCH] Added glusterd start/stop to rc.local*. --- sample-rc.d/rc.local | 3 +++ sample-rc.d/rc.local_shutdown | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sample-rc.d/rc.local b/sample-rc.d/rc.local index 435b7fe..6813866 100755 --- a/sample-rc.d/rc.local +++ b/sample-rc.d/rc.local @@ -8,6 +8,9 @@ # Start the qemu guest additions agent. [ -x /etc/rc.d/rc.qemu-ga ] && /etc/rc.d/rc.qemu-ga start +# Start GlusterFS daemon. +[ -x /etc/rc.d/rc.glusterd ] && /etc/rc.d/rc.glusterd start + # Start the vnstat daemon. [ -x /etc/rc.d/rc.vnstat ] && /etc/rc.d/rc.vnstat start diff --git a/sample-rc.d/rc.local_shutdown b/sample-rc.d/rc.local_shutdown index 6007a93..cc2571b 100755 --- a/sample-rc.d/rc.local_shutdown +++ b/sample-rc.d/rc.local_shutdown @@ -63,6 +63,9 @@ grep "^seeder:" /etc/passwd >/dev/null 2>&1 && { # Stop the vnstat daemon. [ -x /etc/rc.d/rc.vnstat ] && /etc/rc.d/rc.vnstat stop +# Stop GlusterFS daemon. +[ -x /etc/rc.d/rc.glusterd ] && /etc/rc.d/rc.glusterd stop + # Stop the qemu guest additions agent. [ -x /etc/rc.d/rc.qemu-ga ] && /etc/rc.d/rc.qemu-ga stop