Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: John Hill <hill@hep.phy.cam.ac.uk>
Subject: Re: Automating startup & shutdown on Alpha
Date: 1997/06/04	[thread overview]
Message-ID: <339520AD.167E@hep.phy.cam.ac.uk> (raw)
In-Reply-To: 01bc707b$0fefbfb0$6300a8c0@crossland


onwong wrote:
> 
> Using Digital UNIX 3.2C, I have 2 problems:
> 1. How do I automatically start an application from bootup? I have tried
> the /etc/inittab file with:
> xyz:3:boot:/bin/su - username -c "(cd /usr/home/username;./appname)"
> Also no luck with rc3.d script

A script in /sbin/rc3.d should work. It has to be called Sxxyyy where
xx is a number defining the position in the boot sequence and yyy is
an arbitrary name identifying the application. The script is sent a
"start" argument (which can be ignored of course).
The normal approach is to put the script in /sbin/init.d and have a
symbolic link from /sbin/rc3.d. This way, the same script can be used
for shutdown (when it receives a "stop" argument) as well as startup
- you would identify it for use in shutdown by a name such as Kxxyyy
symbolically linking to the script.
Check out the existing scripts in init.d and rc3.d to see what I'm
talking about.

> 2. Is it possible for a user other than root to shut down the system? In
> SCO UNIX I granted a user the shutdown authorisation to be used with
> asroot. But Digital UNIX does not seem to have asroot.
> 
> I appreciate any advice, including good web sites or good books.
> 
> Gary Robertson
> sales@crossland.com.au
> Crossland Tech
> Brisbane, Australia
I'm not really expert enough to answer this.
Regards,
John Hill
-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  Dr. John C. Hill                  University of Cambridge,       +
+  E-mail: hill@hep.phy.cam.ac.uk    Cavendish Laboratory,          +
+  Phone:  +44-1223-337243           Madingley Road,                +
+  Fax:    +44-1223-353920           Cambridge, CB3 0HE, U.K.       +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



      parent reply	other threads:[~1997-06-04  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-04  4:00 Automating startup & shutdown on Alpha onwong
1997-06-04  4:00 ` Ketil Z Malde
1997-06-04  4:00 ` John Hill [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox