commit:     9c60e52a45eb8cc099cd735c7dfa00516435a7a3
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  7 06:29:27 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Mar  7 06:32:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c60e52a

app-emulation/lxd: more POSIX-compliant init.d file, #609070

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-emulation/lxd/files/lxd-4.0.0.initd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-emulation/lxd/files/lxd-4.0.0.initd 
b/app-emulation/lxd/files/lxd-4.0.0.initd
index c55b2da6a84..e6ae971e879 100644
--- a/app-emulation/lxd/files/lxd-4.0.0.initd
+++ b/app-emulation/lxd/files/lxd-4.0.0.initd
@@ -28,7 +28,7 @@ start() {
 }
 
 stop() {
-       if [[ "${RC_CMD}" = restart ]]; then
+       if [ "${RC_CMD}" = restart ]; then
                ebegin "Stopping lxd service (but not containers)"
                # start-stop-daemon sends SIGTERM with a timeout of 5s by 
default.
                # SIGTERM indicates to LXD that it will be stopped temporarily.

Reply via email to