From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Knorr Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Modify System Startup/Shutdown on Tru64 Unix Date: Wed, 29 Mar 2006 13:39:41 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1143657617 27686 80.91.229.2 (29 Mar 2006 18:40:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2006 18:40:17 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Mar 29 20:40:16 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1FOfaS-000502-Vq for gotm-tru64-unix-managers@gmane.org; Wed, 29 Mar 2006 20:40:09 +0200 Original-Received: (qmail 4616 invoked by uid 49509); 29 Mar 2006 18:39:47 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4606 invoked by uid 49501); 29 Mar 2006 18:39:47 -0000 Original-Received: from 160.91.4.119 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.119):SA:0(-2.6/5.0):. Processed in 1.350341 secs); 29 Mar 2006 18:39:47 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute1.ornl.gov (160.91.4.119) by sws1.ornl.gov with SMTP; 29 Mar 2006 18:39:46 -0000 Original-Received: from emroute1.ornl.gov (localhost [127.0.0.1]) by emroute1.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IWW00E4CJU9M6@emroute1.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 Mar 2006 13:39:45 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute1.ornl.gov by emroute1.ornl.gov (PMDF V6.2-1x9 #31038) id <0IWW00H02JU6OB@emroute1.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 Mar 2006 13:39:45 -0500 (EST) Original-Received: from gull.hopsdc.com (gull.hopsdc.com [65.218.191.140]) by emroute1.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IWW00G27JU4OC@emroute1.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 Mar 2006 13:39:42 -0500 (EST) Original-To: tru64-unix-managers@ornl.gov X-Envelope-from: cknorr@trapsystems.com X-MIMEOLE: Produced By Microsoft Exchange V6.5 Thread-Topic: SUMMARY: Modify System Startup/Shutdown on Tru64 Unix Thread-Index: AcZTYCQw2vlnUu+1T2SRHg6qgT6vAg== Content-class: urn:content-classes:message X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: news.gmane.org gmane.os.tru64.managers:8859 Archived-At: QUESTION:=09 Please explain the exact steps needed to add a script to the Tru64 Unix startup process. I got a tremendous amount of great responses to this, as well as a surprising number of people who wanted to know the same thing (which made me feel better!). ANSWER: Copy your script to /sbin/init.d. Assume in this example the script is called example.sh. The script should have execute permission (chmod +x) and be able to handle one parameter ($1 =3D start and $1 =3D stop). Look = at other scripts in this directory for examples. Now go to /sbin/rc3.d. Create a symbolic link to your script starting with an S and followed by the number that corresponds to the order in which you want the script to start. For example: ln -s ../init.d/example.sh S99example If you want a corresponding shutdown script, the "S" should be replaced with a "K".