Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Tomcat server application running on a Solaris 10 server in my company. I have no root access so every time when the system reboots I must manually start the server again. Is it somehow possible to get an event or something when the system startup?

Our IS is outsourced and I really would like to avoid being dependent on any technician outside the company.

share|improve this question
    
possible duplicate of Linux: user defined daemons/services –  symcbean Jun 29 '12 at 12:07
    
Some parts are duplicates. But e.g. the @reboot argument in crontab is not supported in Solaris. –  Henrik Jun 29 '12 at 12:34
add comment

2 Answers 2

up vote 2 down vote accepted

If you can, get your outsource company to set up an RC or svcadm script to run at system start. This will be a one off piece of work, once it is in place Tomcat will start with the system, you will not be dependant on any technician.

If your outsourced IS is not very "on the ball" then another way might be to have a little cron job (assuming you are allowed to use cron) checking for your Tomcat process and starting it up if it's not running.

share|improve this answer
add comment

It isn't pretty but would work:

Write a script that checks if your application is running, if not, start it. Then schedule this script in your user's crontab.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.