]> git.pld-linux.org Git - packages/rpm-pld-macros.git/blobdiff - service_generator.sh
adjust to build with git
[packages/rpm-pld-macros.git] / service_generator.sh
old mode 100644 (file)
new mode 100755 (executable)
index e3acebb..39551a8
@@ -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.042481 seconds and 4 git commands to generate.