[Fedora-directory-commits] ldapserver/wrappers initscript.in, 1.8, 1.9
Nathan Kinder
nkinder at fedoraproject.org
Wed Jan 14 17:19:34 UTC 2009
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/schema 01common.ldif, 1.3, 1.4
- Next message (by thread): [Fedora-directory-commits] ldapserver Makefile.am, 1.78, 1.79 aclocal.m4, 1.78, 1.79 configure, 1.98, 1.99 missing, 1.59, 1.60 install-sh, 1.59, 1.60 depcomp, 1.59, 1.60 compile, 1.52, 1.53 Makefile.in, 1.102, 1.103 config.sub, 1.58, 1.59 config.guess, 1.58, 1.59
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nkinder
Update of /cvs/dirsec/ldapserver/wrappers
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19384/wrappers
Modified Files:
initscript.in
Log Message:
Resolves: 253311
Summary: Clean up formatting of init script output.
Index: initscript.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/wrappers/initscript.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- initscript.in 8 Dec 2007 17:40:32 -0000 1.8
+++ initscript.in 14 Jan 2009 17:19:32 -0000 1.9
@@ -143,7 +143,8 @@
successes=`expr $successes + 1`
server_running=1
else
- echo_n " not running, but pid file exists - attempt to start anyway..."
+ echo " not running, but pid file exists"
+ echo_n " $instance... attempting to start anyway"
rm -f $pidfile
fi
fi
@@ -218,10 +219,10 @@
touch $lockfile
fi
if [ $errors -ge 1 ]; then
- echo "*** Warning: $errors instance(s) failed to start"
+ echo " *** Warning: $errors instance(s) failed to start"
fi
else
- echo "*** Error: no $prog instances configured"
+ echo " *** Error: no $prog instances configured"
fi
}
@@ -229,10 +230,10 @@
echo "Shutting down $prog: "
errors=0
for instance in $INSTANCES; do
+ echo_n " $instance..."
pidfile=$piddir/slapd-$instance.pid
if [ -f $pidfile ]; then
pid=`cat $pidfile`
- echo_n " $instance..."
server_stopped=0
if kill -0 $pid > /dev/null 2>&1 ; then
kill $pid
@@ -242,6 +243,10 @@
failure; echo
errors=`expr $errors + 1`
fi
+ else
+ echo_n " server not running"
+ failure; echo
+ errors=`expr $errors + 1`
fi
if [ $server_stopped -eq 1 ] ; then
loop_counter=1
@@ -266,10 +271,14 @@
rm -f $pidfile
fi
fi
+ else
+ echo_n " server already stopped"
+ failure; echo
+ errors=`expr $errors + 1`
fi
done
if [ $errors -ge 1 ]; then
- echo_n "*** Error: $errors instance(s) unsuccessfully stopped"
+ echo_n " *** Error: $errors instance(s) unsuccessfully stopped"
failure; echo
else
rm -f $lockfile
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/schema 01common.ldif, 1.3, 1.4
- Next message (by thread): [Fedora-directory-commits] ldapserver Makefile.am, 1.78, 1.79 aclocal.m4, 1.78, 1.79 configure, 1.98, 1.99 missing, 1.59, 1.60 install-sh, 1.59, 1.60 depcomp, 1.59, 1.60 compile, 1.52, 1.53 Makefile.in, 1.102, 1.103 config.sub, 1.58, 1.59 config.guess, 1.58, 1.59
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list