check unpersisted state for every command

This commit is contained in:
Jérémy Lecour 2022-04-02 16:28:13 +02:00 committed by Jérémy Lecour
parent a544f64c78
commit 3f2a94231b

View file

@ -1035,9 +1035,10 @@ reset() {
echo "${NAME} version ${VERSION}"
source_configuration
check_unpersisted_state
case "${1:-''}" in
start)
check_unpersisted_state
start
;;
@ -1054,7 +1055,6 @@ case "${1:-''}" in
;;
restart)
check_unpersisted_state
stop
start
;;