[Fedora-directory-commits] ldapserver/wrappers initscript.in, 1.12, 1.13
Nathan Kinder
nkinder at fedoraproject.org
Fri Feb 20 00:14:36 UTC 2009
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication windows_protocol_util.c, 1.51, 1.52
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/admin/src/scripts DSCreate.pm.in, 1.15, 1.16 DSMigration.pm.in, 1.26, 1.27 FileConn.pm, 1.4, 1.5 Util.pm.in, 1.18, 1.19 remove-ds.pl.in, 1.1, 1.2 setup-ds.res.in, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nkinder
Update of /cvs/dirsec/ldapserver/wrappers
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5437/wrappers
Modified Files:
initscript.in
Log Message:
Resolves: 245894
Summary: Check process name in initscript in a more cross-platform manner.
Index: initscript.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/wrappers/initscript.in,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- initscript.in 17 Feb 2009 23:21:05 -0000 1.12
+++ initscript.in 20 Feb 2009 00:14:34 -0000 1.13
@@ -139,9 +139,8 @@
if [ -f $pidfile ]; then
pid=`cat $pidfile`
instlockfile="@localstatedir@/lock/@package_name@/slapd-$instance/server/$pid"
- if kill -0 $pid && \
- [ $(awk '{print $2}' /proc/$pid/stat) = "(ns-slapd)" ] \
- > /dev/null 2>&1 ; then
+ name=`ps -p $pid | tail -1 | awk '{ print $4 }'`
+ if kill -0 $pid && [ $name = "ns-slapd" ]; then
echo_n " already running"
success; echo
successes=`expr $successes + 1`
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/plugins/replication windows_protocol_util.c, 1.51, 1.52
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/admin/src/scripts DSCreate.pm.in, 1.15, 1.16 DSMigration.pm.in, 1.26, 1.27 FileConn.pm, 1.4, 1.5 Util.pm.in, 1.18, 1.19 remove-ds.pl.in, 1.1, 1.2 setup-ds.res.in, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list