]> err.no Git - systemd/commitdiff
Syntax fixes in init-functions
authorTollef Fog Heen <tfheen@err.no>
Wed, 29 Jun 2011 11:58:55 +0000 (13:58 +0200)
committerTollef Fog Heen <tfheen@err.no>
Wed, 29 Jun 2011 11:58:55 +0000 (13:58 +0200)
debian/init-functions

index 492cad2436865335498bece0f8b36c3540ed45bf..c020092557886e4d8aea30dd8bf65b4e909c7354 100644 (file)
@@ -37,9 +37,10 @@ if [ -e /sys/fs/cgroup/systemd ] ; then
                ;;
             # Some services can't reload through the .service file,
             # but can through the init script.
-           if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanReload=no" ] && "$1" = "reload"; then
+           if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanReload=no" ] && [ "$1" = "reload" ]; then
                    _use_systemctl=0
             fi
+            ;;
        esac
     else
        export _SYSTEMCTL_SKIP_REDIRECT="true"