Managing Resin on Ubuntu

From Resin 4.0 Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "When I new release of Resin comes out, I often want to test out that some getting started tutorials are up to date and working as advertised. In order to do this, I like to c...")
 
Line 89: Line 89:
 
To see what Resin installs in usr/local/share you can do this:
 
To see what Resin installs in usr/local/share you can do this:
  
'''Output'''
+
 
 
<pre>
 
<pre>
 
$ dpkg -L resin-pro  | grep /usr/local
 
$ dpkg -L resin-pro  | grep /usr/local
 +
</pre>
 +
 +
 +
'''Output'''
 +
<pre>
 
/usr/local
 
/usr/local
 
/usr/local/share
 
/usr/local/share
Line 128: Line 133:
  
 
<pre>
 
<pre>
 
 
$ dpkg -L resin-pro  | grep -v "/www/doc"
 
$ dpkg -L resin-pro  | grep -v "/www/doc"
 
 
</pre>
 
</pre>
  

Revision as of 00:00, 26 March 2012

When I new release of Resin comes out, I often want to test out that some getting started tutorials are up to date and working as advertised.

In order to do this, I like to completely remove Resin off of one of my Ubuntu instances. These steps should also work with Debian.

Is Resin installed with apt-get or Debian package manager?

To see if Resin is installed at all, do this:


$ dpkg --get-selections | grep resin


Output

resin-pro					install

What version of Resin is installed?

To see what version of Resin you are running, you can do this:

$ dpkg -l | grep resin-pro

Output

ii  resin-pro                              4.0.26                                  Resin application server

Or this if Resin is running:

$ resinctl status

Output

Resin/4.0.26 status for watchdog at 127.0.0.1:6600

watchdog:
  watchdog-pid: 19766

server 'app-0' : ACTIVE
  password: missing
  watchdog-user: root
  user: www-data(www-data)
  root: /var/www
  conf: /etc/resin/resin.xml
  pid: 27326
  uptime: 25 days 16h21


See what Installs with Resin

To see what files are part of this version of Resin do this.

$ dpkg -L resin-pro  

This list is very long so if you wanted to see what Resin puts in /etc you could do this:

$ dpkg -L resin-pro  | grep /etc

Output

/etc
/etc/init.d
/etc/init.d/resin
/etc/resin
/etc/resin/resin.xml
/etc/resin/cluster-default.xml
/etc/resin/app-default.xml
/etc/resin/resin.properties
/etc/resin/resin-inf
/etc/resin/health.xml

To see what Resin installs in usr/local/share you can do this:


$ dpkg -L resin-pro  | grep /usr/local


Output

/usr/local
/usr/local/share
/usr/local/share/resin-pro-4.0.26
/usr/local/share/resin-pro-4.0.26/bin
/usr/local/share/resin-pro-4.0.26/bin/resin.sh
/usr/local/share/resin-pro-4.0.26/bin/resinctl
/usr/local/share/resin-pro-4.0.26/bin/resinctl.in
/usr/local/share/resin-pro-4.0.26/libexec64
/usr/local/share/resin-pro-4.0.26/libexec64/libresin_os.so
/usr/local/share/resin-pro-4.0.26/libexec64/libresin.so
/usr/local/share/resin-pro-4.0.26/LICENSE
/usr/local/share/resin-pro-4.0.26/webapp-jars
/usr/local/share/resin-pro-4.0.26/webapp-jars/hibernate-validator-4.0.2.GA.jar
/usr/local/share/resin-pro-4.0.26/webapp-jars/slf4j-api-1.6.1.jar
/usr/local/share/resin-pro-4.0.26/lib
/usr/local/share/resin-pro-4.0.26/lib/webservices-api.jar
/usr/local/share/resin-pro-4.0.26/lib/webservices.LICENSE
/usr/local/share/resin-pro-4.0.26/lib/resin-eclipselink.jar
/usr/local/share/resin-pro-4.0.26/lib/javaee-16.jar
/usr/local/share/resin-pro-4.0.26/lib/pro.jar
/usr/local/share/resin-pro-4.0.26/lib/webservices-extra-api.jar
/usr/local/share/resin-pro-4.0.26/lib/activation.jar
/usr/local/share/resin-pro-4.0.26/lib/resin.jar
/usr/local/share/resin-pro-4.0.26/lib/webutil.jar
/usr/local/share/resin-pro-4.0.26/lib/eclipselink-2.3.0.jar
/usr/local/share/resin-pro-4.0.26/lib/validation-api-1.0.0.GA.jar
/usr/local/share/resin-pro-4.0.26/lib/jsf-mojarra-2.1.3.jar
/usr/local/share/resin-pro-4.0.26/lib/javamail-141.jar
/usr/local/share/resin-pro-4.0.26/keys
/usr/local/share/resin-pro-4.0.26/licenses
/usr/local/share/resin

I also find it useful to see what is installed sans the docs folder so you can pipe to grep -v (the -v means only show me stuff that does not match the pattern).

$ dpkg -L resin-pro  | grep -v "/www/doc"

Output

/.
/var
/var/log
/var/log/resin
/var/www
/var/www/webapps
/var/www/webapps/ROOT
/var/www/webapps/ROOT/favicon.ico
/var/www/webapps/ROOT/index.jsp
/var/www/licenses
/usr
/usr/bin
/usr/local
/usr/local/share
/usr/local/share/resin-pro-4.0.26
/usr/local/share/resin-pro-4.0.26/bin
/usr/local/share/resin-pro-4.0.26/bin/resin.sh
/usr/local/share/resin-pro-4.0.26/bin/resinctl
/usr/local/share/resin-pro-4.0.26/bin/resinctl.in
/usr/local/share/resin-pro-4.0.26/libexec64
/usr/local/share/resin-pro-4.0.26/libexec64/libresin_os.so
/usr/local/share/resin-pro-4.0.26/libexec64/libresin.so
/usr/local/share/resin-pro-4.0.26/LICENSE
/usr/local/share/resin-pro-4.0.26/webapp-jars
/usr/local/share/resin-pro-4.0.26/webapp-jars/hibernate-validator-4.0.2.GA.jar
/usr/local/share/resin-pro-4.0.26/webapp-jars/slf4j-api-1.6.1.jar
/usr/local/share/resin-pro-4.0.26/lib
/usr/local/share/resin-pro-4.0.26/lib/webservices-api.jar
/usr/local/share/resin-pro-4.0.26/lib/webservices.LICENSE
/usr/local/share/resin-pro-4.0.26/lib/resin-eclipselink.jar
/usr/local/share/resin-pro-4.0.26/lib/javaee-16.jar
/usr/local/share/resin-pro-4.0.26/lib/pro.jar
/usr/local/share/resin-pro-4.0.26/lib/webservices-extra-api.jar
/usr/local/share/resin-pro-4.0.26/lib/activation.jar
/usr/local/share/resin-pro-4.0.26/lib/resin.jar
/usr/local/share/resin-pro-4.0.26/lib/webutil.jar
/usr/local/share/resin-pro-4.0.26/lib/eclipselink-2.3.0.jar
/usr/local/share/resin-pro-4.0.26/lib/validation-api-1.0.0.GA.jar
/usr/local/share/resin-pro-4.0.26/lib/jsf-mojarra-2.1.3.jar
/usr/local/share/resin-pro-4.0.26/lib/javamail-141.jar
/usr/local/share/resin-pro-4.0.26/keys
/usr/local/share/resin-pro-4.0.26/licenses
/etc
/etc/init.d
/etc/init.d/resin
/etc/resin
/etc/resin/resin.xml
/etc/resin/cluster-default.xml
/etc/resin/app-default.xml
/etc/resin/resin.properties
/etc/resin/resin-inf
/etc/resin/health.xml
/usr/bin/resinctl
/usr/local/share/resin

The main areas we need to look at for an uninstall:

/etc/resin
/etc/init.d/resin
/usr/bin/resinctl
/usr/local/share/resin-pro-4.0.26
/var/log/resin
/var/www/webapps
/var/www/licenses
Personal tools
TOOLBOX
LANGUAGES