From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Naidu V. T." Newsgroups: gmane.os.tru64.managers Subject: Summary:Automatic init.d Script Date: Wed, 17 Sep 2003 12:01:51 +0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1063786724 2233 80.91.224.253 (17 Sep 2003 08:18:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2003 08:18:44 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Sep 17 10:04:45 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19zXIq-0006rW-00 for ; Wed, 17 Sep 2003 10:04:44 +0200 Original-Received: (qmail 7974 invoked by uid 5); 17 Sep 2003 08:04:20 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 7965 invoked by uid 49493); 17 Sep 2003 08:04:19 -0000 Original-Received: from naidu@iitcoman.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-3.0/5.0):. Processed in 2.198925 secs); 17 Sep 2003 08:04:19 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 17 Sep 2003 08:04:17 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HLC000GHMF4GW@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 17 Sep 2003 04:04:16 -0400 (EDT) Original-Received: from EXSERVER01 ([212.72.22.90]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HLC000H0ME5J1@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 17 Sep 2003 04:03:46 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: Summary:Automatic init.d Script Thread-Index: AcN88kgEv9/wwOjoEdePcACgJErftQ== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:5352 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5352 Hi, Many thanks to Thomas Kolejaka,Jim Fitzmaurice,Bluejay Adametz,Jenny = Butler.=20 Original Question: I need to run an UPS script automatically when tru64 boots up. I=20 > know I need to modify the following script with an option of start=20 > and stop and I have to copy these files in /sbin/initd. I tried but=20 > it's not happening. I will be happy if gurus can help me to modify=20 > the following script and procedure for automatic startup. We are=20 > using Tru64 version 5.1a . >=20 >=20 Answer: After moving the script to the /sbin/init.d directory, you have to link it to the /sbin/rc3.d directory. # cd /sbin/rc3.d # ln -s ../init.d/ S99 I also found a script which can automate the above activity. Example of = that script is as follows: #!/sbin/sh # PATH=3D/sbin:/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb export PATH script=3D/sbin/init.d/powerflag killscript=3D/sbin/rc0.d/K00powerflag startscript=3D/sbin/rc3.d/S60powerflag # if [ ! -x $script ]; then cp pf_boot.osf1 $script chmod 744 $script fi # if [ ! -x $startscript ]; then ln $script $startscript chmod 744 $startscript fi # if [ ! -x $killscript ]; then ln $script $killscript chmod 744 $killscript fi Thanks & Regards Naidu OHI Telecommunications P.O BOX 889, PC 113 MUSCAT