[SunHELP] Solaris 8 init.d startup scripts

Ben Ricker sunhelp at sunhelp.org
Thu Dec 27 08:39:14 CST 2001


You need to create a secondary script that just calls the script in 
init.d, giving it the 'start' parameter. A sample:

#!/bin/sh

/etc/init.d/oracle start

Put this small script in rc3.d. Create the kill script (send a 'stop' 
instead of 'start') in rc0.d.

Ben Ricker
System Administrator
Wellinx.com

>?Yes, if I run it as root, it starts up just fine, setuid'ing to 
>user "oracle" correctly. But it just doesnt seem to get called at 
>boot time. I made a link "S97oracle" in /etc/rc*.d/ but still it 
>wont get called. I took out the part of the script that shuts down 
>oracle, thinking there may be a problem somewhere that it isnt 
>getting called with the parameter "start".
>I've check the permissions, and it is working. Still, nothing works.:(
>
>Thanks for the help. Anymore you might have in mind? hehe Im fresh 
>out of ideas!:(
>
>JS
>
>P.S. This is Solaris 8 on a UE 450. Was there a change in init 
>scripts for Solaris 8?
>
>>From: "Khuong, Lee T" <Lee.Khuong at stratech.com>
>>Reply-To: sunhelp at sunhelp.org
>>To: 'Scott Jonathan ' <jonokun at hotmail.com>
>>Subject: RE: [SunHELP] Solaris 8 init.d startup scripts
>>Date: Tue, 25 Dec 2001 15:02:58 -0500
>>
>>Scott,
>>
>>Did you have oracle environment initialize in your script and su - oracle
>in
>>the startup, shutdown script also?  You'll need that.
>>
>>Lee
>>
>>-----Original Message-----
>>From: Scott Jonathan
>>To: sunhelp at sunhelp.org
>>Sent: 12/25/2001 3:07 AM
>>Subject: [SunHELP] Solaris 8 init.d startup scripts
>>
>>Hello!
>>
>>I am having trouble getting an init.d startup script I made to get
>>called.
>>The script works with the command "oracle start" and shutdowns properly
>>with "oracle stop". I have placed it inside /etc/init.d and given it
>>proper
>>run permissions. I also made sure it was chown'ed root:sys.
>>
>>I made a link "S97oracle" pointing to the file in /etc/rc3.d. Then I
>>made a
>>link to it again as "K15oracle" in /etc/rc0.d.
>>
>>When I reboot the machine, there is no reference to the script in the
>>messages file or syslog, and the program is not running. What gives? I
>>cant
>>figure out why I cannot get it to start Oracle for me!
>>
>>Hopefully someone can help!
>>
>>JS
>>
>>_________________________________________________________________
>>??????????? No.1 ? MSN Hotmail ?!http://www.hotmail.com/JA/
>>_______________________________________________
>>SunHELP maillist  -  SunHELP at sunhelp.org
>>http://www.sunhelp.org/mailman/listinfo/sunhelp
>
>
>
>
>_________________________________________________________________
>?????????????????? MSN Hotmail ????? http://www.hotmail.com/JA/
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp


-- 



More information about the SunHELP mailing list