mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Violette Roche-Montane
22.38.2013 aedaf5652dd9b728942b9f30836458fe80a423c1
opends/resource/rpm/specFile
@@ -129,8 +129,8 @@
%post
# Registers the service
/sbin/chkconfig --add opendj
# Symlink to process ID
ln -s /opt/opendj/logs/server.pid /var/run/opendj.pid
# Symlinks to process ID
test -h "/var/run/opendj.pid" || ln -s /opt/opendj/logs/server.pid /var/run/opendj.pid
if [ "$1" == "1" ] ; then
    echo "Post Install - initial install"
else if [ "$1" == "2" ] ; then
@@ -177,7 +177,7 @@
    /etc/init.d/opendj stop >/dev/null 2>&1
    /sbin/chkconfig --del opendj
    # Unlink the symlink to the process ID.
    unlink /var/run/opendj.pid
    test -h "/var/run/opendj.pid" && unlink /var/run/opendj.pid
# Only if the instance has been configured    
    if [ -e "%{_prefix}"/config/buildinfo ] && [ "$(ls -A "%{_prefix}"/config/archived-configs)" ]
    then
@@ -221,3 +221,6 @@
- Added '%doc' section.
- Added '%changelog' at the end of the file.
- Added license to header's files.
* Thu Aug 22 2013 ForgeRock
- Modified init.d script.