[Mauiusers] init script

Michael Barnes Michael.Barnes at jlab.org
Wed Dec 5 14:14:55 MST 2007


On Wed, Dec 05, 2007 at 03:00:56PM -0600, Adams, Samuel D AFRL/RHDR wrote:
> I have an init script to start maui on boot, but maui is configured
> to run as a user called torque. It would seem that when the system
> is rebooted, maui is started as root which doesn't work. Any
> recommendations on how to get maui started properly on boot?

You could use something like:

  su torque /usr/local/sbin/maui

or

  su - torque /usr/local/sbin/maui


I actually prefer to not have maui start automatically on boot, and
start it by hand. I've found that when the server needs rebooting,
something is usually wrong, and its best to make sure that the cluster
is OK and the filesystems are up and running, the network is fine, etc
before the batch system starts running jobs.

Even if you forget to start it, someone will soon let you know that
you forgot :)  To me, its better to not run jobs than to have tons of
jobs run and fail.

-mb

-- 
+-----------------------------------------------
| Michael Barnes
|
| Thomas Jefferson National Accelerator Facility
| 12000 Jefferson Ave.
| Newport News, VA 23606
| (757) 269-7634
+-----------------------------------------------


More information about the mauiusers mailing list