--- a/app-emulation/lxd/files/lxd-2.5.initd +++ a/app-emulation/lxd/files/lxd-2.5.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -31,7 +31,7 @@ start() { } stop() { - if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then + if [ "$RC_GOINGDOWN" = "YES" ] || [ "$RC_REBOOT" = "YES" ]; then stopall else ebegin "Stopping lxd service (but not containers)" --- a/app-emulation/lxd/files/lxd-2.7.initd +++ a/app-emulation/lxd/files/lxd-2.7.initd @@ -31,7 +31,7 @@ start() { } stop() { - if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then + if [ "$RC_GOINGDOWN" = "YES" ] || [ "$RC_REBOOT" = "YES" ]; then stopall else ebegin "Stopping lxd service (but not containers)" --- a/app-emulation/lxd/files/lxd-2.8.initd +++ a/app-emulation/lxd/files/lxd-2.8.initd @@ -31,7 +31,7 @@ start() { } stop() { - if [[ $RC_GOINGDOWN = YES ]] || [[ $RC_REBOOT = YES ]]; then + if [ "$RC_GOINGDOWN" = "YES" ] || [ "$RC_REBOOT" = "YES" ]; then stopall else ebegin "Stopping lxd service (but not containers)"