Social Media
Subscription
Fill out the form below to signup to our blog newsletter and we'll drop you a line when new articles come up.
Our strict privacy policy keeps your email address 100% safe & secure.
Featured Posts
- WordPress mass update script 3.4.1
- Setup mail hosting on Debian Squeeze and other distros using postfixadmin
- Setting up Domains Keys (DKIM) on Postfix
- rdiff-backup script using sshfs for larger backups
- Quick and easy iptables blocking and firewalling basics
- Quick and Easy Automatic Backup Script
- PCI compliance - a basic HOWTO
- Mysql Master/Master Replication & File sync for quick easy scaling or load balance
- HOWTO videos for Rimuhosting Control Panel on youtube
- Fixing broken permissions or ownership
-
Recent Posts
- WordPress mass update script 3.4.1
- SSD-backed VPS hosts
- Emailed backup of a database via cron – Attaching files via command line
- London-based Bakop server added; Brisbane coming…
- WordPress mass update script 3.4
- Restarting Apache on deploy
- RimuHosting taking over HostingDirect’s VPS operations
- Saving some typing and time with SSH configs
- Installer updates, Glassfish, Confluence and more…!
- May 2012 RimuHosting newsletter
- Call for ‘startups start here’ stories
- Setting up Domains Keys (DKIM) on Postfix
- New drive options: bigger, faster Intel SSDs!
- Mysql Master/Master Replication & File sync for quick easy scaling or load balance
- Intel Dual Sandybridge servers avilable
- Ubuntu 12.04 LTS Precise Pangolin
- Keeping your hosting panel updated
- Wordcamp New Zealand – Scaling Servers
- Run your own kernel with PV-Grub
- WordPress mass update script 3.3.2
Meta
Tag Archives: java
JBoss AS 7.1 install script
JBoss Application Server (or JBoss AS) is an open-source Java EE-based application server. It has been optimized for multiples cores, it has a very fast startup time and a great low memory consumption. We have created a new version of … Continue reading
Jira Issue Tracker install script
Recently I posted about a script to install Confluence. At the same time I was working on an install script for the Jira® issue tracker (also from Atlassian®) as the underlying setup is quite similar and they are often used … Continue reading
Confluence Wiki install script
Quite often lately we have been asked to set up a Java based wiki, or customers have asked specifically for Confluence® (made by Atlassian® ) by name. Confluence is a powerful and sometimes complex piece of software, so to make … Continue reading
Tomcat 7 released, installer updated
Tomcat is one the most popular Java servlet/JSP containers. Tomcat 6 has been out since 2006 and the Tomcat team has just announced the first stable release of Tomcat 7. At the time of writing version 7.06 is the latest … Continue reading
Setting up Monit + with tomcat
We get asked a lot by customers to install and setup monit. Its not an overly hard task, in fact its pretty darned easy. Monit is brilliant for monitoring and restarting services when they are down, it can alert you … Continue reading
Glassfish Installation Script
We do a lot of Java hosting for our customers. As with any technology, there are a lot of different deployment scenarios to choose from. With Java we tend to see mostly Tomcat hosting because most folks don't require a … Continue reading
Announcing the RimuHosting REST-ful API
Announcing the RimuHosting API The RimuHosting API is an programmable interface to manage some of RimuHosting services. It lets you do things like setup new VPSs, add memory or disk to existing VPSs, check your data transfer usage, grab host … Continue reading
One Java init script to rule them all
Need an init script for a Java service? Like tomcat, liferay, or jboss?
Regular Linux init scripts often don't work so well. e.g. Java apps typically want to be run by a particular user (e.g. tomcat or liferay). e.g. They may require a 'special' shutdown mechanism (e.g. with Tomcat sending a signal to a particular port).
So over the years I have had a handy-dandy script that can control most of my most commonly used Java apps (liferay, tomcat, jboss).
It does things like start up the app as a particular user. Checks to ensure the app is responding on a URL before saying it is stared. Waits for the app to shutdown gracefully, else forces it to quit. And provides kill and killstart commands when you're developing and just want the thing restarted!
This morning I updated it to use the lsb logging methods. So the output is a bit prettier than the 'old' echo's we used to use.
The current version of the file will live at http://proj.ri.mu/javainitscript
To use it wget that to the /etc/init.d directory on your server. Then rename (or symlink) it to the service you want to control. Currently the tomcat, liferay and jboss names are supported.
Some excerpts from the script follow... Continue reading
