how to recreate scripts under /etc/rc3.d folder


 
Thread Tools Search this Thread
Operating Systems Solaris how to recreate scripts under /etc/rc3.d folder
# 1  
Old 10-03-2008
how to recreate scripts under /etc/rc3.d folder

Hi All,

We have the JMS Queue startup script S52imq and some other scripts in our solaris server 5.8 version. now unknowingly something happend to those scripts and its lost. How can I recreate those scripts again to start the JMQ queue again?

We have Solaris 5.10 version which is having those scripts but replcaing them are giving Java Unsupported Version error, when I give ./S52imq start command in the prompt

Please help me in this regards. This is very critical for me

Thanks.
# 2  
Old 10-03-2008
Look under /etc/init.d

Solaris 10 has Java 1.5 as its default Java version. Solaris 8 came with Java 1.2/1.3. Try changing the Java related paths in the script that you copied over from your Solaris 10 server.

Also, if your S52imq script was a symlink, you may find the actual script under /etc/init.d. Do you have the kill script for the same? If yes, then both the S and K scripts in /etc/rc3.d/ are usually linked to the same script under /etc/init.d.

Another thing to note: if you have lost most of your /etc/rc3.d scripts, your server may not startup services as expected. Try restoring this from backups.
# 3  
Old 10-03-2008
Hi frozentin,

Thanks for the reply. I replaced the file from /etc/init.d/imq contents into S52imq.

Now I can do ./S52imq stop and start. But it requires a console to run it. (I can live with that now).

What I want to know is that, where I can check for the backup files in the solaris server? Where it will get stored normally?

And the worst thing was, all the files in rc3.d was corrupted. With your help I corrected one (S52imq).

Help please

Thanks.
# 4  
Old 10-03-2008
By backups I meant some Veritas NetBackup type backups. Ask your Unix/Backup Team about this.

The only other way I know is to:
[1] copy all data out from this server
[2] re-build this server
[3] re-install all apps on this server
[4] restore data from [1]
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

Ignite-UX INDEX file messed up, how to recreate?

OK, so I just messed myself up. Thinking the /var/opt/ignite/data/INDEX files was static, I manually edited the file and added 2 more OS's to it. During an Install it only showed the first OS (started with 11.31, 3 versions then added a 11.23, and a 11.11 stanza's). The 11.23 and 11.11 never... (2 Replies)
Discussion started by: mrmurdock
2 Replies

2. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies

3. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

I need help to write shell script to copy files from one server to another server. Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies

4. UNIX for Dummies Questions & Answers

Recreate/Restore Repository and/or change/delete Public Keys???

I have a BIG problem... I host a public (Debian) repository on Cydia (for jailbroken iphones). I use my home Mac running Ubuntu in VMWare Fusion. For the repository, I have to have 5 items in a folder to make it 'live:' 1. deb_files folder (to hold my Debian packages) 2. Packages file 3.... (0 Replies)
Discussion started by: thazsar
0 Replies

5. Shell Programming and Scripting

script to remove and recreate a lock file

Hi all, i have a small script to remove locks for the prevous day and create new lock for processing in the path on my server i have made something like this #!/bin/sh #lock_remover #script to remove regular lockfiles and hang curr_month=`date "+%b"` 2day=`date "+%_d"` cd... (4 Replies)
Discussion started by: godie_b_w
4 Replies

6. Shell Programming and Scripting

Delete and Recreate around 400 Symbolic Links in one Folder

Hello, I recently just switched my phphandler to suPHP on my server in order to increase security a bit. I am working with 2 scripts, one of which is vbulletin forums and the other is custom. The vbulletin forum avatars are all symbolic links to pictures in the other custom script. When I... (2 Replies)
Discussion started by: ambition13
2 Replies

7. UNIX for Dummies Questions & Answers

Cron changing folder for scripts

I would like to ask if cron when running a planned script changes the current folder for the script. Thank you! (2 Replies)
Discussion started by: MartyIX
2 Replies

8. Shell Programming and Scripting

File Management: How do I move all JPGS in a folder structure to a single folder?

This is the file structure: DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies

9. Linux

startup scripts (rc3.d)

I've created the following link in order to startup apache tomcat on startup, however, it does not seem to run. Am I missing something out? :confused: /etc/init.d lrwxrwxrwx 1 root root 16 Sep 5 14:59 K73ypbind -> ../init.d/ypbind lrwxrwxrwx 1 root root 16 Sep 11 13:09 S100tomcat ->... (5 Replies)
Discussion started by: jon80
5 Replies
Login or Register to Ask a Question