Not able to create a link in /etc/rc3.d in Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Not able to create a link in /etc/rc3.d in Solaris 10
# 1  
Old 03-19-2013
Not able to create a link in /etc/rc3.d in Solaris 10

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.

Code:

Code:
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



Appreciate your quick help on this.

Last edited by Scrutinizer; 03-19-2013 at 08:03 AM.. Reason: icode tags -> code tags
# 2  
Old 03-19-2013
Code:
echo /etc/init.d/ingres* S82ingres

?
# 3  
Old 03-19-2013
Thanks for the response.

Code:
echo /etc/init.d/ingres* S82ingres
/etc/init.d/ingres_shutdown_script /etc/init.d/ingres_startup_script S82ingres


Last edited by DukeNuke2; 03-19-2013 at 08:16 AM..
# 4  
Old 03-19-2013
(Please use CODE tags not ICODE tags!)
ln did odd things because ingres* matched twice.
Do the following
Code:
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:
Code:
ln -s /etc/init.d/ingres_startup /etc/rc3.d/S82ingres

-s is a soft link (like the others).
# 5  
Old 03-19-2013
Hi bot the scripts are different.

Code:
 
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)

# 6  
Old 03-19-2013
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:
Code:
ln -s /etc/init.d/ingres_startup_script /etc/rc3.d/S82ingres
ln -s /etc/init.d/ingres_shutdown_script /etc/rc3.d/K82ingres

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to create variables to pass into a bash loop to create a download link

I have created one file that contains all the necessary info in it to create a download link. In each of the lines /results/analysis/output/Home/Auto_user_S5-00580-6-Medexome_67_032/plugin_out/FileExporter_out.67... (8 Replies)
Discussion started by: cmccabe
8 Replies

2. UNIX for Advanced & Expert Users

Cannot create a link with the same name

Hi - Our system admin cannot create a link to NAS with one particular name but he can create with other names. What might be the cause? Regards ---------- Post updated at 11:30 AM ---------- Previous update was at 11:29 AM ---------- It says permission denied. (2 Replies)
Discussion started by: w020637
2 Replies

3. Solaris

Create a Link for a directory

Hi, I need to create a link as stagein01 for the /p11/prod/stagein01/. Please let me know the procedure for the same. Regards, VN (5 Replies)
Discussion started by: narayanv
5 Replies

4. Shell Programming and Scripting

SED - Create mailto: link

Help! I am using sed to convert text files into easily viewed html tables. I have managed all except converting the email addresses to mailto: links. Multiple email addresses exist within the files, either preceded by a space or > (as part of HTML tag), and followed by either space or < I've... (5 Replies)
Discussion started by: Nigel_R
5 Replies

5. Solaris

Create sym-link into /dev (zone)

Hi i need to install a software into a zone, and this kind of software needs to have a file who is linked into /dev. But it is not possible to create a link into /dev nor create a file into it. -bash-3.00# ln -s /tmp/testfile /dev/ ln: cannot create /dev//testfile: Permission denied... (2 Replies)
Discussion started by: beta17
2 Replies

6. AIX

How to create a sym link pointing a changing name.

Hello A new file is created every day with the date appended to the end of a name. We are using Autosys to run jobs which watches for the file and runs jobs. But Autosys does not have the capability to figure out the current date. I tried creating a symlink like this ln -s... (1 Reply)
Discussion started by: vra5107
1 Replies

7. Shell Programming and Scripting

Shell script to create a link

Hi All, I have a problem to writing a shell script to create a soft link in some other directory For eg: /opt/Shreedhar/Naik is directory now i need to write shell script in the path /opt/Shreedhar/Naik which should create a soft link in /opt/Shreedhar. I have tried to write the script... (3 Replies)
Discussion started by: Shreedhar Naik
3 Replies

8. Shell Programming and Scripting

how to create symbolic link between folders.....

hi champs, i have folders structure up to log is there , which is as below, app | |---version-4.1 | |----bin | | | | | |-----a.sh | | |-----b.sh | | | |----log | | \---version (symbolic link to version-4.1) but i want to create another folder... (2 Replies)
Discussion started by: manas_ranjan
2 Replies

9. UNIX for Dummies Questions & Answers

Create Symbolic Link

I am Solaris korn shell. I want to create a symbolic link. I have a directory /u01/ftp01/db I want to reference it as /u05/swe/my (this is not a real directory) I tried a symbolic link but it does not work ln -s /u01/ftp01/db /u05/swe/my ln: cannot create //u05/swe/my: No such... (2 Replies)
Discussion started by: lesstjm
2 Replies
Login or Register to Ask a Question