Author: glen                         Date: Mon May  5 13:49:00 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- indenting

---- Files affected:
SOURCES:
   service_generator.sh (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/service_generator.sh
diff -u SOURCES/service_generator.sh:1.8 SOURCES/service_generator.sh:1.9
--- SOURCES/service_generator.sh:1.8    Wed Jun 21 12:52:07 2006
+++ SOURCES/service_generator.sh        Mon May  5 15:48:54 2008
@@ -18,36 +18,37 @@
 # common part
 service_body() {
        cat <<-EOF
-       if [ -f /var/lock/subsys/$service ]; then
-               /sbin/service $service $action 1>&2 || :;
-EOF
+               if [ -f /var/lock/subsys/$service ]; then
+                       /sbin/service $service $action 1>&2 || :;
+       EOF
+
        if [ "$quiet" != 1 ]; then
                cat <<-EOF
                else
                        echo 'Run "/sbin/service $service start" to start 
$desc.'
-EOF
+               EOF
        fi
        cat <<-EOF
-       fi
-EOF
+               fi
+       EOF
 }
 
 # include check function
 skip_auto_restart_body() {
        cat <<-EOF
-       skip_auto_restart() {
-               [ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
-               [ -f /etc/sysconfig/$service ] && . /etc/sysconfig/$service
-               echo \${RPM_SKIP_AUTO_RESTART:-no}
-       };
-EOF
+               skip_auto_restart() {
+                       [ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
+                       [ -f /etc/sysconfig/$service ] && . 
/etc/sysconfig/$service
+                       echo \${RPM_SKIP_AUTO_RESTART:-no}
+               };
+       EOF
 }
 
 echo ''
 if [ "$check" = 1 ]; then
        skip_auto_restart_body
        echo 'if [ $(skip_auto_restart) = no ]; then'
-       service_body
+               service_body
        echo 'fi'
 else
        service_body
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/service_generator.sh?r1=1.8&r2=1.9&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to