HI I am using solaris 10.We are doing some failover testing and checking whether services are starting up when we reboot the server.
As part of process i have moved scripts to /etc/init.d directory and trying to create a link /etc/rc3.d like this.
But strangely it is giving an error eventhough there is no file or directoy exists with the samename.
[EMAIL="root@dcwipvmvom002:/etc/rc3.d"]
root@dcwipvmvom002:/etc/rc3.d # ls -rl
total 24
lrwxrwxrwx 1 root root 17 Mar 14 06:14 S98gmdid -> /etc/init.d/gmdid
lrwxrwxrwx 1 root root 15 Mar 14 06:13 S97vma -> /etc/init.d/vma
lrwxrwxrwx 1 root root 15 Mar 14 06:13 S86spa -> /etc/init.d/spa
lrwxrwxrwx 1 root root 18 Mar 14 06:13 S85orderg -> /etc/init.d/orderg
lrwxrwxrwx 1 root root 18 Mar 14 06:12 S84orderm -> /etc/init.d/orderm
lrwxrwxrwx 1 root root 17 Mar 14 06:12 S83specs -> /etc/init.d/specs
-rwxr--r-- 6 root sys 2452 Apr 3 2012 S50apache
-rwxr--r-- 6 root sys 474 Jan 21 2005 S16boot.server
root@dcwipvmvom002:/etc/rc3.d # pwd
/etc/rc3.d
ln /etc/init.d/ingres* S82ingres
ln: S82ingres not found
[/EMAIL]
Appreciate your quick help on this.
echo /etc/init.d/ingres* S82ingres
?
Thanks for the response.
echo /etc/init.d/ingres* S82ingres
/etc/init.d/ingres_shutdown_script /etc/init.d/ingres_startup_script S82ingres
(Please use CODE tags not ICODE tags!)
ln
did odd things because ingres* matched twice.
Do the following
diff /etc/init.d/ingres_shutdown_script /etc/init.d/ingres_startup_script
If there is really a difference, then link to the startup script:
ln -s /etc/init.d/ingres_startup /etc/rc3.d/S82ingres
-s
is a soft link (like the others).
Hi bot the scripts are different.
root@dcwipvmvom002:/etc # diff /etc/init.d/ingres_shutdown_script /etc/init.d/ingres_startup_script
5,6c5,6
< #Stop Ingres Client
< su - ingres -c "ingstop -force"
---
> #Start Ingres Client
> su - ingres -c "ingstart"
9c9
< echo 'Ingres did not stop correctly';
---
> echo 'Ingres did not start correctly';
13c13
< echo 'Ingres stopped correctly'
---
> echo 'Ingres started correctly'
14a15,17
>
>
>
I need to use only bwlo command.
echo /etc/init.d/ingres* S82ingres.One strange thing it worked on some other server(solaris 10).but not working in the current server(which is also solaris 10)
RudiC
March 19, 2013, 6:55am
6
You can't have one link point to two (or more) files.
Here, you need a start "link" and a "stop" link, usually distinguished by the initial letter:
ln -s /etc/init.d/ingres_startup_script /etc/rc3.d/S82ingres
ln -s /etc/init.d/ingres_shutdown_script /etc/rc3.d/K82ingres