init script fixes
This commit is contained in:
parent
1447738ac4
commit
001a81b9f4
@ -41,6 +41,7 @@ slapd=/usr/sbin/slapd
|
|||||||
slaptest=/usr/sbin/slaptest
|
slaptest=/usr/sbin/slaptest
|
||||||
lockfile=/var/lock/subsys/ldap
|
lockfile=/var/lock/subsys/ldap
|
||||||
configfile=/etc/openldap/slapd.conf
|
configfile=/etc/openldap/slapd.conf
|
||||||
|
pidfile=/var/run/openldap/slapd.pid
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
@ -176,7 +177,7 @@ function start() {
|
|||||||
fi
|
fi
|
||||||
# Start daemons.
|
# Start daemons.
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
daemon --check=$prog ${slapd} -h "\"$harg\"" -u ${user} $OPTIONS $SLAPD_OPTIONS
|
daemon --pidfile=$pidfile --check=$prog ${slapd} -h "\"$harg\"" -u ${user} $OPTIONS $SLAPD_OPTIONS
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ $RETVAL -eq 0 ] && touch $lockfile
|
[ $RETVAL -eq 0 ] && touch $lockfile
|
||||||
echo
|
echo
|
||||||
@ -187,7 +188,7 @@ function stop() {
|
|||||||
# Stop daemons.
|
# Stop daemons.
|
||||||
prog=`basename ${slapd}`
|
prog=`basename ${slapd}`
|
||||||
echo -n $"Stopping $prog: "
|
echo -n $"Stopping $prog: "
|
||||||
killproc ${slapd}
|
killproc -p $pidfile ${slapd}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ $RETVAL -eq 0 ] && rm -f $lockfile /var/run/slapd.args
|
[ $RETVAL -eq 0 ] && rm -f $lockfile /var/run/slapd.args
|
||||||
echo
|
echo
|
||||||
@ -208,7 +209,7 @@ case "$1" in
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status ${slapd}
|
status -p $pidfile ${slapd}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
restart|force-reload)
|
restart|force-reload)
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
Summary: The configuration files, libraries, and documentation for OpenLDAP
|
Summary: The configuration files, libraries, and documentation for OpenLDAP
|
||||||
Name: openldap
|
Name: openldap
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: OpenLDAP
|
License: OpenLDAP
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
|
Source0: ftp://ftp.OpenLDAP.org/pub/OpenLDAP/openldap-release/openldap-%{version}.tgz
|
||||||
@ -605,6 +605,9 @@ fi
|
|||||||
%attr(0644,root,root) %{evolution_connector_libdir}/*.a
|
%attr(0644,root,root) %{evolution_connector_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 28 2008 Jan Safranek <jsafranek@redhat.com> 2.4.7-6
|
||||||
|
- init script fixes
|
||||||
|
|
||||||
* Mon Jan 28 2008 Jan Safranek <jsafranek@redhat.com> 2.4.7-5
|
* Mon Jan 28 2008 Jan Safranek <jsafranek@redhat.com> 2.4.7-5
|
||||||
- init script made LSB-compliant (#247012)
|
- init script made LSB-compliant (#247012)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user