From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,be4f62467c40a94b X-Google-Attributes: gid1164f8,public From: John Hill Subject: Re: Automating startup & shutdown on Alpha Date: 1997/06/04 Message-ID: <339520AD.167E@hep.phy.cam.ac.uk>#1/1 X-Deja-AN: 246008972 References: <01bc707b$0fefbfb0$6300a8c0@crossland> Organization: University of Cambridge Newsgroups: comp.sys.dec 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. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++