Author: rmeggins
Update of /cvs/dirsec/adminserver/admserv/cfgstuff
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2777/cfgstuff
Added Files:
restart-ds-admin.in start-ds-admin.in stop-ds-admin.in
Removed Files:
restart-admin.in start-admin.in stop-admin.in
Log Message:
rename scripts to x-ds-admin; fix uid change in config.c; remove obsolete snmp CGIs
--- NEW FILE restart-ds-admin.in ---
#!/bin/sh
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# END COPYRIGHT BLOCK
@cmdbindir@/stop-admin
sleep 3
@cmdbindir@/start-admin
--- NEW FILE start-ds-admin.in ---
#!/bin/sh
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# END COPYRIGHT BLOCK
# This script sets up the environment for the httpd server and starts it.
# for httpd, on RHEL, this will typically be something like /usr/sbin/httpd.worker
# On HP-UX, this may be /opt/hpws/apache/bin/httpd.
unset PASSWORD_PIPE
LD_LIBRARY_PATH=@LIBPATH@:${LD_LIBRARY_PATH};export LD_LIBRARY_PATH
LIBPATH=@LIBPATH@:${LIBPATH}:/usr/threads/lib:/usr/ibmcxx/lib:/usr/lib:/lib; export
LIBPATH
SHLIB_PATH=@LIBPATH@:${SHLIB_PATH}; export SHLIB_PATH
HTTPD=@HTTPD@
# see if httpd is linked with the openldap libraries - we need to override them
OS=`uname -s`
if [ $OS = "Linux" ]; then
hasol=0
/usr/bin/ldd $HTTPD 2>&1 | grep libldap > /dev/null 2>&1 &&
hasol=1
if [ $hasol -eq 1 ] ; then
LD_PRELOAD="@nss_libdir(a)/libssl3.so @ldapsdk_libdir(a)/libldap60.so"
export LD_PRELOAD
fi
fi
$HTTPD -k start -f @configdir(a)/httpd.conf "$@"
--- NEW FILE stop-ds-admin.in ---
#!/bin/sh
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# END COPYRIGHT BLOCK
PID_FILE=@piddir@/@pidfile@
if test -f $PID_FILE ; then
kill -TERM -`cat $PID_FILE`
if test $? -ne 0 ; then
exit 1
fi
else
echo server not running
exit 1
fi
loop_counter=1
max_count=30
while test $loop_counter -le $max_count; do
loop_counter=`expr $loop_counter + 1`
if test -f $PID_FILE ; then
sleep 2
else
exit 0
fi
done
echo server not responding to exit command
echo killing process group
kill -9 -`cat $PID_FILE`
rm $PID_FILE
exit 1
--- restart-admin.in DELETED ---
--- start-admin.in DELETED ---
--- stop-admin.in DELETED ---
Show replies by date