]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - disable-systemd.patch
autotag: make git complatible (however needs to be in package dir)
[packages/rpm-build-macros.git] / disable-systemd.patch
index 0dec30c7643ab5c0c222d90f3bd58f3f9eab049e..208c2ab99213b616831d056d1fe936994501c852 100644 (file)
  
  %systemdunitdir /lib/systemd/system
  %systemdtmpfilesdir /usr/lib/tmpfiles.d
+--- ./service_generator.sh     1 Feb 2012 17:46:43 -0000       1.13
++++ ./service_generator.sh     4 Jan 2012 05:09:03 -0000       1.11
+@@ -19,8 +19,7 @@
+ # common part
+ service_body() {
+       cat <<-EOF
+-              if [ ! -x /bin/systemd_booted ] || ! /bin/systemd_booted; then
+-                      if [ -f /var/lock/subsys/$service ]; then
++              if [ -f /var/lock/subsys/$service ]; then
+       EOF
+       if [ "$noop" = 1 ]; then
+               echo :
+@@ -32,12 +31,11 @@
+       if [ "$quiet" != 1 ]; then
+               cat <<-EOF
+-                      else
+-                              echo 'Run "/sbin/service $service start" to start $desc.'
++              else
++                      echo 'Run "/sbin/service $service start" to start $desc.'
+               EOF
+       fi
+       cat <<-EOF
+-                      fi
+               fi
+       EOF
+ }
+@@ -61,10 +59,8 @@
+       echo 'else'
+               # service restart was disabled, tell them to restart it
+       cat <<-EOF
+-              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
++              if [ -f /var/lock/subsys/$service ]; then
++                      echo 'Run "/sbin/service $service restart" to restart $desc.'
+               fi
+       EOF
+       echo 'fi'
This page took 0.128852 seconds and 4 git commands to generate.