]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- /bin/systemd_booted may not exist
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 1 Feb 2012 17:46:43 +0000 (17:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    service_generator.sh -> 1.13

service_generator.sh

index e3acebb17af415763561613fc7521a3877e127da..39551a8f0780cf787771da521d7063f49e20566f 100644 (file)
@@ -19,7 +19,7 @@ fi
 # common part
 service_body() {
        cat <<-EOF
-               if ! /bin/systemd_booted; then
+               if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
                        if [ -f /var/lock/subsys/$service ]; then
        EOF
        if [ "$noop" = 1 ]; then
@@ -61,7 +61,7 @@ if [ "$check" = 1 ]; then
        echo 'else'
                # service restart was disabled, tell them to restart it
        cat <<-EOF
-               if ! /bin/systemd_booted; then
+               if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
                        if [ -f /var/lock/subsys/$service ]; then
                                echo 'Run "/sbin/service $service restart" to restart $desc.'
                        fi
This page took 0.0443 seconds and 4 git commands to generate.