From 34a4739a3653e708a56e089c5b51440b4f9320ee Mon Sep 17 00:00:00 2001 From: Violette Roche-Montane <violette.roche-montane@forgerock.com> Date: Thu, 22 Aug 2013 09:38:01 +0000 Subject: [PATCH] OPENDJ-1114 Improve the debian package - Original data are copied under build/deb/ folder as the process to build the deb package implies to modify the source. - Opendj init script has been modified. Indeed, under debian OS (and others) the /var/run/ folder is deleted at reboot, deleting by the same way our pid file, making the service wobbly. - As linux distro use the same opendj file, a new folder was created under resource to store the shared file between them. - At last, modified post/prem/specFile as well as the fact to create a symlink on an existing one throws an error. (same when you try to remove one from no-existing) --- opendj-sdk/opends/resource/debian/control/postinst | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/opendj-sdk/opends/resource/debian/control/postinst b/opendj-sdk/opends/resource/debian/control/postinst index 9477b50..9bf9a36 100644 --- a/opendj-sdk/opends/resource/debian/control/postinst +++ b/opendj-sdk/opends/resource/debian/control/postinst @@ -4,6 +4,10 @@ # Install is launched with an empty second arg. # If the package is already installed, # the second arg. is not empty. +# Registers the service +update-rc.d opendj defaults +# Symlinks to process ID +test -h "/var/run/opendj.pid" || ln -s /opt/opendj/logs/server.pid /var/run/opendj.pid # In this case, we are in upgrade mode. if [ "$1" = "configure" ] && [ ! -z "$2" ] then -- Gitblit v1.10.0