title: Adding additional tomcat instance using update-rc.d for Ubuntu fails
body: <p>My problem in short: I am unable to setup multiple instances of tomcat.</p>
  
  <p>This started to happen on a new Ubuntu 16.04 setup with tomcat8. The same configuration works fine on Ubuntu 12.04 with tomcat7.</p>
  
  <p>I've installed tomcat8 and tomcat8-user:</p>
  
  <pre><code>apt-get install tomcat8
  apt-get install tomcat8-user
  </code></pre>
  
  <p>Then I create new instance of tomcat:</p>
  
  <pre><code>tomcat8-instance-create -p 8081 -c 8006 -w shutdown-test /var/lib/tomcat8-test
  </code></pre>
  
  <p>I copy all the necessary tomcat work and conf files and folders.
  Next I copy tomcat8 script for new instance:</p>
  
  <pre><code>/etc/init.d# cp tomcat8 tomcat8-test
  </code></pre>
  
  <p>I update the script with new data like that:</p>
  
  <pre><code>/etc/init.d# nano tomcat8-test
  
  # file contents
  NAME=tomcat8-test
  DESC="Tomcat 8 Test instance"
  CATALINA_HOME=/usr/share/tomcat8
  </code></pre>
  
  <p>And finally I try to update the new script for a service link:</p>
  
  <pre><code>/etc/init.d# update-rc.d tomcat8-test defaults 90
  </code></pre>
  
  <p>I got the following messages:</p>
  
  <blockquote>
    <p>insserv: script tomcat8-test: service tomcat8 already provided!
    insserv: exiting now!<br>
    update-rc.d: error: insserv rejected the script header</p>
  </blockquote>
  
  <p>Has anyone else experienced something like this?</p>
  
  <p>All I managed to find myself is this:</p>
  
  <pre><code>source: [https://wiki.debian.org/LSBInitScripts/DependencyBasedBoot][1]
  insserv: script X: service Y already provided!
  Bug in the package with script X: The facility provided in script /etc/init.d/X uses a non-unique value. Changing it to a unique value (for example the script name without .sh ending), solves the issue.
  </code></pre>