Tomcat component removed after server reboot

Created:

2016-12-12 03:45:49 UTC

Modified:

2017-08-08 13:36:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Tomcat component removed after server reboot

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

Tomcat Java Servlet component installed on Amazon server instance removed on every OS reboot and has to be manually installed again in the Plesk control panel.

Cause

Startup script having instructions to download and run the script containings yum -y remove vim-minimal package removed

Workaround

  1. Open /etc/rc5.d/S99local for editing
  2. Go to the line #651, it will looks like the following:

    $logger "Bootstrapping profile: $PROFILE"
  3. Add the following, after the line #651

    /bin/sed -i '/vim-minimal/d' /etc/bootstrap.d/profile-common.sh

Or you can apply the patch below:

# diff -Nrau S99local S99local.patched
--- S99local 2016-10-14 14:01:30.795111998 +0600
+++ S99local.patched 2016-10-14 14:01:19.101111999 +0600
@@ -649,6 +649,7 @@
fi
if [ -s "/etc/bootstrap.d/profile-${PROFILE}.sh" ]; then
$logger "Bootstrapping profile: $PROFILE"
+ /bin/sed -i '/vim-minimal/d' /etc/bootstrap.d/profile-common.sh
chmod 700 /etc/bootstrap.d/profile-${PROFILE}.sh
$logger "Running /etc/bootstrap.d/profile-${PROFILE}.sh."
/etc/bootstrap.d/profile-${PROFILE}.sh 2>&1 >/var/log/profile-${PROFILE}.out
Have more questions? Submit a request
Please sign in to leave a comment.